<?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>38862</bug_id>
          
          <creation_ts>2010-05-10 12:53:07 -0700</creation_ts>
          <short_desc>svn-apply: Eliminate the &quot;copiedFiles&quot; hash</short_desc>
          <delta_ts>2010-05-11 22:10:57 -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>Tools / Tests</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="Chris Jerdonek">cjerdonek</reporter>
          <assigned_to name="Chris Jerdonek">cjerdonek</assigned_to>
          <cc>cjerdonek</cc>
    
    <cc>dbates</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>223467</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-10 12:53:07 -0700</bug_when>
    <thetext>This report is to do a few clean-ups in svn-apply:

(1) Eliminate use of %copiedFiles (it&apos;s not necessary)
(2) Address the FIXME to use exitStatus() in gitKnowsOfFile()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223658</commentid>
    <comment_count>1</comment_count>
      <attachid>55638</attachid>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-10 18:55:55 -0700</bug_when>
    <thetext>Created attachment 55638
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223671</commentid>
    <comment_count>2</comment_count>
      <attachid>55638</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-05-10 19:06:29 -0700</bug_when>
    <thetext>Comment on attachment 55638
Proposed patch

Do we know this is covered properly with tests?

I woudl have written this:
+    my $exitStatus = exitStatus($?);
+    return $exitStatus == 0;

as just:
return exitStatus($?) == 0;

Then again, That should really use system instead of `` since it doesn&apos;t need/want the output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223692</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-10 19:38:51 -0700</bug_when>
    <thetext>(In reply to comment #2)

Thanks, Eric!

&gt; (From update of attachment 55638 [details])
&gt; Do we know this is covered properly with tests?

Unfortunately, this area of svn-apply is not covered by unit tests.  I did do some manual tests though.  Now that you mention it, I&apos;ll also run &quot;test-webkitpy --all&quot; before landing to make sure.

&gt; I woudl have written this:
&gt; +    my $exitStatus = exitStatus($?);
&gt; +    return $exitStatus == 0;
&gt; 
&gt; as just:
&gt; return exitStatus($?) == 0;

Yes, thanks.  I suppose I left it as it appears now because it makes it easier to later add a &quot;print($exitStatus)&quot; line for debug purposes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223694</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-05-10 19:45:18 -0700</bug_when>
    <thetext>Eeek!  No tests!?  Why should I r+ this then? :(((</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224276</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-11 17:18:19 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Eeek!  No tests!?  Why should I r+ this then? :(((

That question seems rhetorical so I won&apos;t answer it.  (Let me know if it&apos;s not.)

In terms of tests, this change doesn&apos;t add to or change any functionality, so I didn&apos;t add any tests.  Is it a requirement for patches that refactor non-unit-tested code to create tests?  I was just trying to simplify the existing code without doing too much extra work.  It looks like it could be a bigger project to add a decent test harness for testing higher-level Perl scm functionality (something I&apos;ve made a lot of headway on, incidentally, via the parse-related subroutines in VCSUtils.pm and bug 34033 which was a keystone).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224360</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-05-11 20:24:49 -0700</bug_when>
    <thetext>In general it&apos;s *strongly encouraged* to test code when touching it.  In times when I&apos;ve thought it would be a lot of work to unit test something in the python code I&apos;ve found that it was less work than I thought, and totally worth the effort.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224361</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-05-11 20:25:12 -0700</bug_when>
    <thetext>That said, my r+ still stands... I&apos;m just trying to lay on the guilt real thick...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224403</commentid>
    <comment_count>8</comment_count>
      <attachid>55638</attachid>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-11 22:10:50 -0700</bug_when>
    <thetext>Comment on attachment 55638
Proposed patch

Clearing flags on attachment: 55638

Committed r59209: &lt;http://trac.webkit.org/changeset/59209&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224404</commentid>
    <comment_count>9</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-05-11 22:10:57 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>55638</attachid>
            <date>2010-05-10 18:55:55 -0700</date>
            <delta_ts>2010-05-11 22:10:50 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>_patch-38862-1.diff</filename>
            <type>text/plain</type>
            <size>2286</size>
            <attacher name="Chris Jerdonek">cjerdonek</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCA2ZTBmMmI0Li5kYzBiNTM2IDEwMDY0NAotLS0gYS9XZWJLaXRUb29scy9DaGFuZ2VM
b2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTAtMDUt
MTAgIENocmlzIEplcmRvbmVrICA8Y2plcmRvbmVrQHdlYmtpdC5vcmc+CisKKyAgICAgICAgUmV2
aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgRml4ZWQgdHdvIEZJWE1FJ3MgaW4g
c3ZuLWFwcGx5OiBlbGltaW5hdGVkIHRoZSB1bm5lY2Vzc2FyeSAlY29waWVkRmlsZXMKKyAgICAg
ICAgdmFyaWFibGUgYW5kIGNoYW5nZWQgZ2l0S25vd3NPZkZpbGUoKSB0byB1c2UgZXhpdFN0YXR1
cygpLgorCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0z
ODg2MgorCisgICAgICAgICogU2NyaXB0cy9zdm4tYXBwbHk6CisKIDIwMTAtMDUtMTAgIERpcmsg
UHJhbmtlICA8ZHByYW5rZUBjaHJvbWl1bS5vcmc+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgRXJp
YyBTZWlkZWwuCmRpZmYgLS1naXQgYS9XZWJLaXRUb29scy9TY3JpcHRzL3N2bi1hcHBseSBiL1dl
YktpdFRvb2xzL1NjcmlwdHMvc3ZuLWFwcGx5CmluZGV4IGY0ZTFkMzguLjhlMWE2NWQgMTAwNzU1
Ci0tLSBhL1dlYktpdFRvb2xzL1NjcmlwdHMvc3ZuLWFwcGx5CisrKyBiL1dlYktpdFRvb2xzL1Nj
cmlwdHMvc3ZuLWFwcGx5C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3ZSBzaG91bGQgYmUgYWJsZSB0byByZW1vdmUKLSAgICAjICAgICAgICB0aGUg
dmFyaWFibGUgZnJvbSB0aGlzIGZpbGUgZW50aXJlbHkuCi0gICAgJGFkZGl0aW9uID0gMSBpZiAo
JGRpZmZIYXNoUmVmLT57aXNOZXd9IHx8ICRwYXRjaCA9fiAvXG5AQCAtMCwwIC4qIEBALykgJiYg
IWV4aXN0cygkY29waWVkRmlsZXN7JGZ1bGxQYXRofSk7CisgICAgJGFkZGl0aW9uID0gMSBpZiAo
JGRpZmZIYXNoUmVmLT57aXNOZXd9IHx8ICRwYXRjaCA9fiAvXG5AQCAtMCwwIC4qIEBALyk7CiAg
ICAgJGRlbGV0aW9uID0gMSBpZiAoJGRpZmZIYXNoUmVmLT57aXNEZWxldGlvbn0gfHwgJHBhdGNo
ID1+IC9cbkBAIC4qIFwrMCwwIEBALyk7CiAKICAgICBpZiAoISRhZGRpdGlvbiAmJiAhJGRlbGV0
aW9uICYmICEkaXNCaW5hcnkpIHsKQEAgLTQxNyw5ICs0MTAsOCBAQCBzdWIgZ2l0S25vd3NPZkZp
bGUoJCkKICAgICBteSAkcGF0aCA9IHNoaWZ0OwogCiAgICAgYGdpdCBscy1maWxlcyAtLWVycm9y
LXVubWF0Y2ggLS0gJHBhdGhgOwotICAgICMgRklYTUU6IENoYW5nZSB0aGlzIHRvIHVzZSBWQ1NV
dGlscy5wbSdzIGV4aXRTdGF0dXMoKS4KLSAgICBteSAkZXhpdENvZGUgPSAkPyA+PiA4OwotICAg
IHJldHVybiAkZXhpdENvZGUgPT0gMDsKKyAgICBteSAkZXhpdFN0YXR1cyA9IGV4aXRTdGF0dXMo
JD8pOworICAgIHJldHVybiAkZXhpdFN0YXR1cyA9PSAwOwogfQogCiBzdWIgc2NtS25vd3NPZkZp
bGUoJCkK
</data>

          </attachment>
      

    </bug>

</bugzilla>