<?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>38186</bug_id>
          
          <creation_ts>2010-04-27 01:57:22 -0700</creation_ts>
          <short_desc>REGRESSION(r58261): webkit-patch upload does not work in an SVN checkout.</short_desc>
          <delta_ts>2010-04-27 02:35:26 -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>PC</rep_platform>
          <op_sys>OS X 10.5</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="Maciej Stachowiak">mjs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>eric</cc>
    
    <cc>ojan</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>217596</commentid>
    <comment_count>0</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-04-27 01:57:22 -0700</bug_when>
    <thetext>webkit-patch upload does not work in an SVN checkout. This is a regression from r58261. It gives this error:

$ webkit-patch upload
Parsing ChangeLog: /Users/mjs/Work/src/Safari/OpenSource/WebCore/ChangeLog
Traceback (most recent call last):
  File &quot;/Users/mjs/Work/src/Safari/OpenSource/WebKitTools/Scripts/webkit-patch&quot;, line 56, in &lt;module&gt;
    main()
  File &quot;/Users/mjs/Work/src/Safari/OpenSource/WebKitTools/Scripts/webkit-patch&quot;, line 51, in main
    WebKitPatch(__file__).main()
  File &quot;/Users/mjs/Work/src/Safari/OpenSource/WebKitTools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 302, in main
    result = command.check_arguments_and_execute(options, args, self)
  File &quot;/Users/mjs/Work/src/Safari/OpenSource/WebKitTools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 113, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Users/mjs/Work/src/Safari/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py&quot;, line 43, in execute
    self._sequence.run_and_handle_errors(tool, options, self._prepare_state(options, args, tool))
  File &quot;/Users/mjs/Work/src/Safari/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 66, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/Users/mjs/Work/src/Safari/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 60, in _run
    step(tool, options).run(state)
  File &quot;/Users/mjs/Work/src/Safari/OpenSource/WebKitTools/Scripts/webkitpy/tool/steps/checkstyle.py&quot;, line 56, in run
    if self._tool.scm().should_squash(self._options.squash):
AttributeError: SVN instance has no attribute &apos;should_squash&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217598</commentid>
    <comment_count>1</comment_count>
      <attachid>54400</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-04-27 02:02:20 -0700</bug_when>
    <thetext>Created attachment 54400
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217599</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-04-27 02:05:08 -0700</bug_when>
    <thetext>Attachment 54400 did not pass style-queue:

Failed to run &quot;[&apos;WebKitTools/Scripts/check-webkit-style&apos;, &apos;--no-squash&apos;]&quot; exit_code: 1
WebKitTools/Scripts/webkitpy/common/checkout/scm.py:215:  deprecated form of raising exception  [pep8/W602] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217600</commentid>
    <comment_count>3</comment_count>
      <attachid>54400</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-04-27 02:07:21 -0700</bug_when>
    <thetext>Comment on attachment 54400
Patch

r=me

You may want to fix the style complaints before committing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217603</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-04-27 02:10:24 -0700</bug_when>
    <thetext>Committed r58297: &lt;http://trac.webkit.org/changeset/58297&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217611</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-04-27 02:27:14 -0700</bug_when>
    <thetext>We use this style for &quot;NotImplemented&quot; exceptions because Eric said it integrates with some python tool.  I&apos;m not sure if that&apos;s something we still care about now that we&apos;ve adopted PEP8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217612</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-04-27 02:31:10 -0700</bug_when>
    <thetext>The tool is pylint.

But we don&apos;t have to follow it to the letter. WE just have to throw NotImplemented.  But we could throw the more supported raise NotImplemented(&quot;foo&quot;) i think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217614</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-04-27 02:32:28 -0700</bug_when>
    <thetext>raise NotImplementedError(&quot;foo&quot;) rather.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217616</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-04-27 02:35:26 -0700</bug_when>
    <thetext>We could test this using something like:
http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitpy/common/checkout/scm_unittest.py#L159
which just called SVN.should_squash to validate it returned false.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>54400</attachid>
            <date>2010-04-27 02:02:20 -0700</date>
            <delta_ts>2010-04-27 02:33:54 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-38186-20100427020219.patch</filename>
            <type>text/plain</type>
            <size>2753</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDU4Mjk2KQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTAtMDQtMjcgIEFkYW0gQmFydGggIDxhYmFy
dGhAd2Via2l0Lm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKwor
ICAgICAgICBSRUdSRVNTSU9OKHI1ODI2MSk6IHdlYmtpdC1wYXRjaCB1cGxvYWQgZG9lcyBub3Qg
d29yayBpbiBhbiBTVk4gY2hlY2tvdXQuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3Jn
L3Nob3dfYnVnLmNnaT9pZD0zODE4NgorCisgICAgICAgIFVuZm9ydHVuYXRlbHksIHdlIGRvbid0
IGhhdmUgYSBnb29kIHdheSBvZiB0ZXN0aW5nIHRoaXMgY2hhbmdlIGJlY2F1c2UKKyAgICAgICAg
b3VyIHRlc3QgY292ZXJhZ2Ugb2YgdGhlIHNjbS5weSBBUEkgaXMgcG9vci4uLgorCisgICAgICAg
ICogU2NyaXB0cy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N0cmFjdFN0ZXApOgog
ICAgICAgICAgICAgYXJncy5hcHBlbmQoIi0tYnVnPSVzIiAlIHN0YXRlWyJidWdfaWQiXSkKICAg
ICAgICAgaWYgc2VsZi5fb3B0aW9ucy5lbWFpbDoKICAgICAgICAgICAgIGFyZ3MuYXBwZW5kKCIt
LWVtYWlsPSVzIiAlIHNlbGYuX29wdGlvbnMuZW1haWwpCi0gICAgICAgIGlmIChzZWxmLl90b29s
LnNjbSgpLnN1cHBvcnRzX2xvY2FsX2NvbW1pdHMoKSBhbmQKLSAgICAgICAgICAgIHNlbGYuX3Rv
b2wuc2NtKCkuc2hvdWxkX3NxdWFzaChzZWxmLl9vcHRpb25zLnNxdWFzaCkpOgorICAgICAgICBp
ZiBzZWxmLl90b29sLnNjbSgpLnNob3VsZF9zcXVhc2goc2VsZi5fb3B0aW9ucy5zcXVhc2gpOgog
ICAgICAgICAgICAgYXJncy5hcHBlbmQoIi0tbWVyZ2UtYmFzZT0lcyIgJSBzZWxmLl90b29sLnNj
bSgpLnN2bl9tZXJnZV9iYXNlKCkpCiAgICAgICAgIGlmIHNlbGYuX29wdGlvbnMuZ2l0X2NvbW1p
dDoKICAgICAgICAgICAgIGFyZ3MuYXBwZW5kKCItLWdpdC1jb21taXQ9JXMiICUgc2VsZi5fb3B0
aW9ucy5naXRfY29tbWl0KQo=
</data>
<flag name="review"
          id="38360"
          type_id="1"
          status="+"
          setter="mjs"
    />
          </attachment>
      

    </bug>

</bugzilla>