<?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>45424</bug_id>
          
          <creation_ts>2010-09-08 17:18:25 -0700</creation_ts>
          <short_desc>svn-apply tries to delete directories it shouldn&apos;t</short_desc>
          <delta_ts>2010-09-09 14:30:30 -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>Other</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="Mihai Parparita">mihaip</reporter>
          <assigned_to name="Mihai Parparita">mihaip</assigned_to>
          <cc>dbates</cc>
    
    <cc>dglazkov</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>276197</commentid>
    <comment_count>0</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-09-08 17:18:25 -0700</bug_when>
    <thetext>svn-apply tries to delete directories it shouldn&apos;t</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276205</commentid>
    <comment_count>1</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-09-08 17:29:43 -0700</bug_when>
    <thetext>Eric, can you review this? This is why the EWS failed for bug 45307 (see output at https://webkit-commit-queue.appspot.com/results/3961246). It called isDirectoryEmptyForRemoval on LayoutTests/platform/mac/http. That only has one item in it, the tests subdirectory. We ended up calling scmWillDeleteFile(&quot;LayoutTests/platform/mac/http/tests&quot;), which returned true since there were files deleted in it (and for the git case we just look for a leading D).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276208</commentid>
    <comment_count>2</comment_count>
      <attachid>66971</attachid>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-09-08 17:32:46 -0700</bug_when>
    <thetext>Created attachment 66971
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276652</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-09-09 12:11:56 -0700</bug_when>
    <thetext>Dan is the man.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276654</commentid>
    <comment_count>4</comment_count>
      <attachid>66971</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-09-09 12:12:42 -0700</bug_when>
    <thetext>Comment on attachment 66971
Patch

We&apos;ve been trying to unittest our perl code more.  I&apos;m not sure we have a way to test code which is still in svn-apply directly (instead of being in a seprate perl module), but Dan would know.  What about svn-unapply?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276729</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-09-09 13:55:06 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 66971 [details])
&gt; We&apos;ve been trying to unittest our perl code more.  I&apos;m not sure we have a way to test code which is still in svn-apply directly (instead of being in a seprate perl module), but Dan would know.  What about svn-unapply?

Unfortunately, we don&apos;t have a way to test code in svn-apply and svn-unapply directly at this time. This function is specific to svn-apply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276730</commentid>
    <comment_count>6</comment_count>
      <attachid>66971</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-09-09 13:55:34 -0700</bug_when>
    <thetext>Comment on attachment 66971
Patch

r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276735</commentid>
    <comment_count>7</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-09-09 13:58:33 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 66971 [details])
&gt; r=me.

Thanks. Mind landing this (I don&apos;t have committer access yet)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276739</commentid>
    <comment_count>8</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-09-09 14:00:27 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (From update of attachment 66971 [details] [details])
&gt; &gt; r=me.
&gt; 
&gt; Thanks. Mind landing this (I don&apos;t have committer access yet)?

Sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276744</commentid>
    <comment_count>9</comment_count>
      <attachid>66971</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-09-09 14:08:00 -0700</bug_when>
    <thetext>Comment on attachment 66971
Patch

Clearing flags on attachment: 66971

Committed r67115: &lt;http://trac.webkit.org/changeset/67115&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276745</commentid>
    <comment_count>10</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-09-09 14:08:09 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276766</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-09-09 14:28:40 -0700</bug_when>
    <thetext>You can also always set cq? :)  Thanks dan for the info and landage!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276769</commentid>
    <comment_count>12</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-09-09 14:30:30 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; You can also always set cq? :)  Thanks dan for the info and landage!

Yes, I normally would cq+ such a patch, but the queue looked pretty full at the time.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66971</attachid>
            <date>2010-09-08 17:32:46 -0700</date>
            <delta_ts>2010-09-09 14:08:00 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-45424-20100908173245.patch</filename>
            <type>text/plain</type>
            <size>1473</size>
            <attacher name="Mihai Parparita">mihaip</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCBiOGRiZGFjMDFmY2Y5MGZmMTJiOGMzOWZmNmI5ZGQ1NzYwNjk1N2FiLi5mMzViZjNm
YmYwMzYyZmIxYzc5ODdjZDI4ZTBmNzBmYWUyMzk0OGQyIDEwMDY0NAotLS0gYS9XZWJLaXRUb29s
cy9DaGFuZ2VMb2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYgQEAK
KzIwMTAtMDktMDggIE1paGFpIFBhcnBhcml0YSAgPG1paGFpcEBjaHJvbWl1bS5vcmc+CisKKyAg
ICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgc3ZuLWFwcGx5IHRy
aWVzIHRvIGRlbGV0ZSBkaXJlY3RvcmllcyBpdCBzaG91bGRuJ3QKKyAgICAgICAgaHR0cHM6Ly9i
dWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTQ1NDI0CisKKyAgICAgICAgaXNEaXJlY3Rv
cnlFbXB0eUZvclJlbW92YWwgaGFkIHRoZSB3cm9uZyBjaGVjay4gSWYgYW4gaXRlbSBpbiB0aGUK
KyAgICAgICAgZGlyZWN0b3J5IGlzIGl0c2VsZiBhIGRpcmVjdG9yeSwgdGhlbiB0aGUgZGlyZWN0
b3J5IGlzIGRlZmluaXRlbHkKKyAgICAgICAgbm90IGVtcHR5LgorCisgICAgICAgICogU2NyaXB0
c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