<?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>167264</bug_id>
          
          <creation_ts>2017-01-20 15:56:47 -0800</creation_ts>
          <short_desc>svn-create-patch should emit properties when files are moved or copied</short_desc>
          <delta_ts>2017-01-23 12:16:37 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=167169</see_also>
          <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="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>lforschler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1268630</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-01-20 15:56:47 -0800</bug_when>
    <thetext>svn-create-patch does not emit properties when files are moved or copied through svn move or svn copy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268636</commentid>
    <comment_count>1</comment_count>
      <attachid>299401</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-01-20 16:07:35 -0800</bug_when>
    <thetext>Created attachment 299401
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268666</commentid>
    <comment_count>2</comment_count>
      <attachid>299408</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-01-20 17:20:46 -0800</bug_when>
    <thetext>Created attachment 299408
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268672</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-01-20 17:23:43 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Created attachment 299408 [details]
&gt; Patch

Minor change on the original patch, same result.

Note that without https://bugs.webkit.org/show_bug.cgi?id=167169, this code will fail to emit the correct patch in the following case:

svn mv file1 file2
svn propset &lt;property&gt; file2

In this case (and similar cases) the patch will result in file2 having the same properties as file1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268684</commentid>
    <comment_count>4</comment_count>
      <attachid>299408</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-01-20 17:58:32 -0800</bug_when>
    <thetext>Comment on attachment 299408
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=299408&amp;action=review

&gt; Tools/Scripts/svn-create-patch:331
&gt; -        print `svn cat ${escapedSourceFile} | diff -u $devNull - | tail -n +3`;
&gt; +        print `svn diff -r 0:${sourceRevision} ${escapedSourceFile} | tail -n +5`;

I suspect that some (hopefully ancient) version of SVN did not support diffing against revision 0 and this led us to come up with the svn cat | diff workaround when we added this function in the patch for bug #12023. Is there a version of SVN that does not support diffing from revision 0? If so, do we need to support such an SVN version (say, for Windows, GTK or EFL ports)?

From my own testing, SVN version 1.7.4 (r1295709) and 1.9.4 (r1740329) support diffing against revision 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269075</commentid>
    <comment_count>5</comment_count>
      <attachid>299408</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-01-23 09:38:57 -0800</bug_when>
    <thetext>Comment on attachment 299408
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=299408&amp;action=review

&gt;&gt; Tools/Scripts/svn-create-patch:331
&gt;&gt; +        print `svn diff -r 0:${sourceRevision} ${escapedSourceFile} | tail -n +5`;
&gt; 
&gt; I suspect that some (hopefully ancient) version of SVN did not support diffing against revision 0 and this led us to come up with the svn cat | diff workaround when we added this function in the patch for bug #12023. Is there a version of SVN that does not support diffing from revision 0? If so, do we need to support such an SVN version (say, for Windows, GTK or EFL ports)?
&gt; 
&gt; From my own testing, SVN version 1.7.4 (r1295709) and 1.9.4 (r1740329) support diffing against revision 0.

I couldn&apos;t find any documentation that would indicate this ever didn&apos;t work.

If this did fail, it would likely look something like this:
svn: E#: Syntax error in revision argument &apos;0:r#&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269104</commentid>
    <comment_count>6</comment_count>
      <attachid>299408</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-01-23 10:52:52 -0800</bug_when>
    <thetext>Comment on attachment 299408
Patch

The Windows, GTK and EFL bots didn&apos;t complain. Let&apos;s try this!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269126</commentid>
    <comment_count>7</comment_count>
      <attachid>299408</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-01-23 12:14:06 -0800</bug_when>
    <thetext>Comment on attachment 299408
Patch

Just as an additional note, it seems that we don&apos;t use this technique anywhere else, and talking with Dave Kilzer, this was not a technique considered originally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269128</commentid>
    <comment_count>8</comment_count>
      <attachid>299408</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-01-23 12:16:32 -0800</bug_when>
    <thetext>Comment on attachment 299408
Patch

Clearing flags on attachment: 299408

Committed r211048: &lt;http://trac.webkit.org/changeset/211048&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269129</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-01-23 12:16:37 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>299401</attachid>
            <date>2017-01-20 16:07:35 -0800</date>
            <delta_ts>2017-01-20 17:20:44 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-167264-20170120160542.patch</filename>
            <type>text/plain</type>
            <size>1330</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIxMDk5MykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDE3LTAxLTIwICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBzdm4tY3JlYXRlLXBhdGNoIHNob3VsZCBlbWl0IHByb3BlcnRpZXMgd2hl
biBmaWxlcyBhcmUgbW92ZWQgb3IgY29waWVkCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQu
b3JnL3Nob3dfYnVnLmNnaT9pZD0xNjcyNjQKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworICAgICAgICAqIFNjcmlwdHMvc3ZuLWNyZWF0ZS1wYXRjaDoKKyAgICAgICAg
KG1hbnVmYWN0dXJlUGF0Y2hGb3JBZGRpdGlvbldpdGhIaXN0b3J5KTogRGlmZiB0aGUgc291cmNl
IGZpbGUgYWdhaW5zdCBub3RoaW5nIHRvIGdldCBwcm9wZXJ0aWVzLgorCiAyMDE3LTAxLTIwICBB
bGV4IENocmlzdGVuc2VuICA8YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CiAKICAgICAgICAgQnVp
bGQgRml4IGZvciBXaW5kb3dzIER1bXBSZW5kZXJUcmVlIGFmdGVyIHIyMTA5NzYKSW5kZXg6IFRv
b2xzL1NjcmlwdHMvc3ZuLWNyZWF0ZS1wYXRjaAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9TY3JpcHRz
L3N2bi1jcmVhdGUtcGF0Y2gJKHJldmlzaW9uIDIxMDkzMCkKKysrIFRvb2xzL1NjcmlwdHMvc3Zu
LWNyZWF0ZS1wYXRjaAkod29ya2luZyBjb3B5KQpAQCAtMzI4LDcgKzMyOCw4IEBAIHN1YiBtYW51
ZmFjdHVyZVBhdGNoRm9yQWRkaXRpb25XaXRoSGlzdG8KICAgICAgICAgcHJpbnQgInN2bjptaW1l
LXR5cGUgPSAke21pbWVUeXBlfVxuXG4iOwogICAgIH0gZWxzZSB7CiAgICAgICAgIG15ICRlc2Nh
cGVkU291cmNlRmlsZSA9IGVzY2FwZVN1YnZlcnNpb25QYXRoKCRzb3VyY2VGaWxlKTsKLSAgICAg
ICAgcHJpbnQgYHN2biBjYXQgJHtlc2NhcGVkU291cmNlRmlsZX0gfCBkaWZmIC11ICRkZXZOdWxs
IC0gfCB0YWlsIC1uICszYDsKKyAgICAgICAgbXkgQG91dHB1dCA9IHNwbGl0IC9cbi8sIGBzdm4g
ZGlmZiAtciAwOiR7c291cmNlUmV2aXNpb259ICR7ZXNjYXBlZFNvdXJjZUZpbGV9YDsKKyAgICAg
ICAgcHJpbnQgam9pbigiXG4iLCBzcGxpY2UoQG91dHB1dCwgNCwgc2NhbGFyKEBvdXRwdXQpKSks
ICJcbiI7CiAgICAgfQogfQogCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>299408</attachid>
            <date>2017-01-20 17:20:46 -0800</date>
            <delta_ts>2017-01-23 12:16:32 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-167264-20170120171853.patch</filename>
            <type>text/plain</type>
            <size>1254</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIxMDk5MykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDE3LTAxLTIwICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBzdm4tY3JlYXRlLXBhdGNoIHNob3VsZCBlbWl0IHByb3BlcnRpZXMgd2hl
biBmaWxlcyBhcmUgbW92ZWQgb3IgY29waWVkCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQu
b3JnL3Nob3dfYnVnLmNnaT9pZD0xNjcyNjQKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworICAgICAgICAqIFNjcmlwdHMvc3ZuLWNyZWF0ZS1wYXRjaDoKKyAgICAgICAg
KG1hbnVmYWN0dXJlUGF0Y2hGb3JBZGRpdGlvbldpdGhIaXN0b3J5KTogRGlmZiB0aGUgc291cmNl
IGZpbGUgYWdhaW5zdCBub3RoaW5nIHRvIGdldCBwcm9wZXJ0aWVzLgorCiAyMDE3LTAxLTIwICBB
bGV4IENocmlzdGVuc2VuICA8YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CiAKICAgICAgICAgQnVp
bGQgRml4IGZvciBXaW5kb3dzIER1bXBSZW5kZXJUcmVlIGFmdGVyIHIyMTA5NzYKSW5kZXg6IFRv
b2xzL1NjcmlwdHMvc3ZuLWNyZWF0ZS1wYXRjaAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9TY3JpcHRz
L3N2bi1jcmVhdGUtcGF0Y2gJKHJldmlzaW9uIDIxMDkzMCkKKysrIFRvb2xzL1NjcmlwdHMvc3Zu
LWNyZWF0ZS1wYXRjaAkod29ya2luZyBjb3B5KQpAQCAtMzI4LDcgKzMyOCw3IEBAIHN1YiBtYW51
ZmFjdHVyZVBhdGNoRm9yQWRkaXRpb25XaXRoSGlzdG8KICAgICAgICAgcHJpbnQgInN2bjptaW1l
LXR5cGUgPSAke21pbWVUeXBlfVxuXG4iOwogICAgIH0gZWxzZSB7CiAgICAgICAgIG15ICRlc2Nh
cGVkU291cmNlRmlsZSA9IGVzY2FwZVN1YnZlcnNpb25QYXRoKCRzb3VyY2VGaWxlKTsKLSAgICAg
ICAgcHJpbnQgYHN2biBjYXQgJHtlc2NhcGVkU291cmNlRmlsZX0gfCBkaWZmIC11ICRkZXZOdWxs
IC0gfCB0YWlsIC1uICszYDsKKyAgICAgICAgcHJpbnQgYHN2biBkaWZmIC1yIDA6JHtzb3VyY2VS
ZXZpc2lvbn0gJHtlc2NhcGVkU291cmNlRmlsZX0gfCB0YWlsIC1uICs1YDsKICAgICB9CiB9CiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>