<?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>35804</bug_id>
          
          <creation_ts>2010-03-05 13:30:03 -0800</creation_ts>
          <short_desc>svn-apply: should provide an error message if --binary should be used</short_desc>
          <delta_ts>2010-05-03 21:01:25 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="James Robinson">jamesr</reporter>
          <assigned_to name="Chris Jerdonek">cjerdonek</assigned_to>
          <cc>abarth</cc>
    
    <cc>cjerdonek</cc>
    
    <cc>dbates</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>196615</commentid>
    <comment_count>0</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2010-03-05 13:30:03 -0800</bug_when>
    <thetext>See the failures from https://bugs.webkit.org/show_bug.cgi?id=25648.  The failure message is:

Failed to run &quot;[&apos;/mnt/git/webkit-chromium-ews/WebKitTools/Scripts/svn-apply&apos;, &apos;--force&apos;]&quot; exit_code: 2
patching file LayoutTests/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file LayoutTests/fast/repaint/slider-thumb-change-height.html
patching file LayoutTests/fast/repaint/slider-update-value.html
patching file LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.checksum
patch: **** Only garbage was found in the patch input.
patching file LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.txt
patching file LayoutTests/platform/mac/fast/repaint/slider-update-value-expected.checksum
patch: **** Only garbage was found in the patch input.
patching file LayoutTests/platform/mac/fast/repaint/slider-update-value-expected.txt
patching file WebCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file WebCore/rendering/RenderObject.h
patching file WebCore/rendering/RenderSlider.cpp

This is because &apos;patch&apos; complains that the diffs for the .checksum files are nothing but garbage.  The diffs look like this:

diff --git a/LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.checksum b/LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.checksum
new file mode 100644
index 0000000..82cbe9b
--- /dev/null
+++ b/LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.checksum
@@ -0,0 +1 @@
+6e3355f2ea671c3956c85dcb3b0c97a0
\ No newline at end of file

A patch generated from SVN applies cleanly.  The .checksum portion of this patch is:

Index: LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.checksum
===================================================================
--- LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.checksum  (revision 0)
+++ LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.checksum  (revision 0)
@@ -0,0 +1 @@
+6e3355f2ea671c3956c85dcb3b0c97a0
\ No newline at end of file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196620</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-03-05 13:34:55 -0800</bug_when>
    <thetext>EWS (and the commit-queue, etc) all use svn-apply under the covers.  So the real bug is there.

Do we have reproduction steps?

Something like:

cat &quot;1232434&quot; &gt; foo
git diff --binary &gt; test.patch
svn-apply test.patch

Reproduction steps will help us understand what&apos;s actually going on.

This would be where the bug would be in svn-apply, if we determine this is a real bug:
http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/VCSUtils.pm#L364</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196629</commentid>
    <comment_count>2</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2010-03-05 13:52:22 -0800</bug_when>
    <thetext>Ah, it&apos;s actually dying on this part:

diff --git a/LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.png b/LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.png
new file mode 100644
index 0000000..661d863
Binary files /dev/null and b/LayoutTests/platform/mac/fast/repaint/slider-thumb-change-height-expected.png differ


That makes more sense.  I guess the script should just skip binary diffs completely?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196632</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-03-05 14:00:13 -0800</bug_when>
    <thetext>We just need a better error message.  Your diff is missing the git diff --binary flag.  So there is no binary data!  Thus svn-apply can&apos;t actually apply the patch.

If you regenerate the diff with git diff --binary or using webkit-patch upload it will &quot;do the right thing&quot; and svn-apply will work just fine.

svn-apply can handle &quot;git diff --binary&quot; patches, but if you have binary changes and don&apos;t pass --binary,  svn-apply can&apos;t handle the patch (because there is not enough data in the patch!).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220416</commentid>
    <comment_count>4</comment_count>
      <attachid>54982</attachid>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-03 19:20:11 -0700</bug_when>
    <thetext>Created attachment 54982
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220424</commentid>
    <comment_count>5</comment_count>
      <attachid>54982</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-05-03 19:42:24 -0700</bug_when>
    <thetext>Comment on attachment 54982
Proposed patch

YES!  This will be hugely helpful for the cq.  This is a common mistake, and the cq should be able to tell people automatically instead of me having to manually.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220446</commentid>
    <comment_count>6</comment_count>
      <attachid>54982</attachid>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-03 21:01:14 -0700</bug_when>
    <thetext>Comment on attachment 54982
Proposed patch

Clearing flags on attachment: 54982

Committed r58732: &lt;http://trac.webkit.org/changeset/58732&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220447</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-03 21:01:25 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>54982</attachid>
            <date>2010-05-03 19:20:11 -0700</date>
            <delta_ts>2010-05-03 21:01:14 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>_patch-35804-1.diff</filename>
            <type>text/plain</type>
            <size>1724</size>
            <attacher name="Chris Jerdonek">cjerdonek</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCBkNDNiMzk0Li45NjBkYmM4IDEwMDY0NAotLS0gYS9XZWJLaXRUb29scy9DaGFuZ2VM
b2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTggQEAKKzIwMTAtMDUt
MDMgIENocmlzIEplcmRvbmVrICA8Y2plcmRvbmVrQHdlYmtpdC5vcmc+CisKKyAgICAgICAgUmV2
aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgVGhlIHN2bi1hcHBseSBhbmQgc3Zu
LXVuYXBwbHkgc2NyaXB0cyBub3cgZGlzcGxheSBhbiBpbnN0cnVjdGl2ZQorICAgICAgICBlcnJv
ciBtZXNzYWdlIGlmIHRoZSAtLWJpbmFyeSBmbGFnIGlzIGxlZnQgb2ZmIHRoZSAiZ2l0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ZGluZyA9
IDE7CisgICAgICAgICMgVGhlICJnaXQgZGlmZiIgY29tbWFuZCBpbmNsdWRlcyBhIGxpbmUgb2Yg
dGhlIGZvcm0gIkJpbmFyeSBmaWxlcworICAgICAgICAjIDxwYXRoMT4gYW5kIDxwYXRoMj4gZGlm
ZmVyIiBpZiB0aGUgLS1iaW5hcnkgZmxhZyBpcyBub3QgdXNlZC4KKyAgICAgICAgfSBlbHNpZiAo
L15CaW5hcnkgZmlsZXMgLyApIHsKKyAgICAgICAgICAgIGRpZSgiRXJyb3I6IHRoZSBHaXQgZGlm
ZiBjb250YWlucyBhIGJpbmFyeSBmaWxlIHdpdGhvdXQgdGhlIGJpbmFyeSBkYXRhIGluICIuCisg
ICAgICAgICAgICAgICAgImxpbmU6IFwiJF9cIi4gIEJlIHN1cmUgdG8gdXNlIHRoZSAtLWJpbmFy
eSBmbGFnIHdoZW4gaW52b2tpbmcgXCJnaXQgZGlmZlwiICIuCisgICAgICAgICAgICAgICAgIndp
dGggZGlmZnMgY29udGFpbmluZyBiaW5hcnkgZmlsZXMuIik7CiAgICAgICAgIH0gZWxzaWYgKC9e
R0lUIGJpbmFyeSBwYXRjaCQvICkgewogICAgICAgICAgICAgJGZvdW5kSGVhZGVyRW5kaW5nID0g
MTsKICAgICAgICAgfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>