<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>33134</bug_id>
          
          <creation_ts>2010-01-04 00:29:06 -0800</creation_ts>
          <short_desc>Create a unit tested parsePatchHeader() subroutine for svn-apply and svn-unapply</short_desc>
          <delta_ts>2010-01-10 12:49:07 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>33447</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Jerdonek">cjerdonek</reporter>
          <assigned_to name="Chris Jerdonek">cjerdonek</assigned_to>
          <cc>abarth</cc>
    
    <cc>aroben</cc>
    
    <cc>cjerdonek</cc>
    
    <cc>darin</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>eric</cc>
    
    <cc>hamaji</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>176557</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-01-04 00:29:06 -0800</bug_when>
    <thetext>Create a unit tested parsePatchHeader() subroutine for svn-apply and svn-unapply.  In addition to providing more test coverage, this will result in more code sharing between svn-apply and svn-unapply.

This affects the code in the main while(&lt;&gt;) loop of both scripts:

while (&lt;&gt;) {
    s/([\n\r]+)$//mg;
    my $eol = $1;
    if (!defined($indexPath) &amp;&amp; m#^diff --git a/#) {
        $filter = \&amp;gitdiff2svndiff;
    }
    $_ = &amp;$filter($_) if $filter;
    if (/^Index: (.+)/) {
        ...
    }
    if ($indexPath) {
        # Fix paths on diff, ---, and +++ lines to match preceding Index: line.
        s/^--- \S+/--- $indexPath/;
        if (/^--- .+\(from (\S+):\d+\)$/) {
            $copiedFromPath = $1;
        }
        if (s/^\+\+\+ \S+/+++ $indexPath/) {
            $indexPath = &quot;&quot;;
        }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179162</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-01-10 12:49:07 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 33447 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>