Changeset 58297 in webkit


Ignore:
Timestamp:
Apr 27, 2010 2:10:12 AM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-04-27 Adam Barth <abarth@webkit.org>

Reviewed by Maciej Stachowiak.

REGRESSION(r58261): webkit-patch upload does not work in an SVN checkout.
https://bugs.webkit.org/show_bug.cgi?id=38186

Unfortunately, we don't have a good way of testing this change because
our test coverage of the scm.py API is poor...

  • Scripts/webkitpy/common/checkout/scm.py:
  • Scripts/webkitpy/tool/steps/preparechangelog.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r58293 r58297  
     12010-04-27  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        REGRESSION(r58261): webkit-patch upload does not work in an SVN checkout.
     6        https://bugs.webkit.org/show_bug.cgi?id=38186
     7
     8        Unfortunately, we don't have a good way of testing this change because
     9        our test coverage of the scm.py API is poor...
     10
     11        * Scripts/webkitpy/common/checkout/scm.py:
     12        * Scripts/webkitpy/tool/steps/preparechangelog.py:
     13
    1142010-04-26  Eric Seidel  <eric@webkit.org>
    215
  • trunk/WebKitTools/Scripts/webkitpy/common/checkout/scm.py

    r58261 r58297  
    212212        raise NotImplementedError, "subclasses must implement"
    213213
     214    def should_squash(self, squash):
     215        raise NotImplementedError, "subclasses must implement"
     216
    214217    def commit_with_message(self, message, username=None, git_commit=None, squash=None):
    215218        raise NotImplementedError, "subclasses must implement"
     
    392395        run_command(['svn', 'revert'] + file_paths)
    393396
     397    def should_squash(self, squash):
     398        # SVN doesn't support the concept of squashing.
     399        return False
     400
    394401    def commit_with_message(self, message, username=None, git_commit=None, squash=None):
    395402        # squash and git-commit are not used by SVN.
  • trunk/WebKitTools/Scripts/webkitpy/tool/steps/preparechangelog.py

    r58261 r58297  
    5656        if self._options.email:
    5757            args.append("--email=%s" % self._options.email)
    58         if (self._tool.scm().supports_local_commits() and
    59             self._tool.scm().should_squash(self._options.squash)):
     58        if self._tool.scm().should_squash(self._options.squash):
    6059            args.append("--merge-base=%s" % self._tool.scm().svn_merge_base())
    6160        if self._options.git_commit:
Note: See TracChangeset for help on using the changeset viewer.