Changeset 175717 in webkit
- Timestamp:
- Nov 6, 2014 2:41:31 PM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r175694 r175717 1 2014-11-06 Matthew Hanson <matthew_hanson@apple.com> 2 3 Remove code that prepends a leading 'r' to the first argument of _run_git_svn_find_rev 4 https://bugs.webkit.org/show_bug.cgi?id=138475 5 6 Reviewed by Ryosuke Niwa. 7 8 The change in https://trac.webkit.org/175603 introduced broke compatibility with svn_revision_from_git_commit. 9 This patch reverts the part of that change that broke compatibility. In addition, this patch adds a comment to 10 explain that SVN revisions require a leading 'r', moves an existing comment to a more appropriate location and 11 renames the positional argument to better reflect that it can represent either an SVN revision or a Git tree-ish. 12 13 * Scripts/webkitpy/common/checkout/scm/git.py: 14 (Git._run_git_svn_find_rev): 15 Add comment mentioning that svn_revisions need to begin with 'r'. 16 Move comment (explaining that git svn find-rev exits with code 0 when no match is found) to a more appropriate location. 17 Rename the argument 'revision' to 'revision_or_treeish' to reflect the dual form that argument can take. 18 Remove code that coerced the revision/treeish into a string and prepended an 'r'. 19 1 20 2014-11-06 Carlos Garcia Campos <cgarcia@igalia.com> 2 21 -
trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py
r175606 r175717 324 324 return self.prepend_svn_revision(self.run(command, decode_output=False, cwd=self.checkout_root)) 325 325 326 def _run_git_svn_find_rev(self, revision, branch=None): 327 revision = str(revision) 328 if revision and revision[0] != 'r': 329 revision = 'r' + revision 330 331 # git svn find-rev always exits 0, even when the revision or commit is not found. 332 command = ['svn', 'find-rev', revision] 326 def _run_git_svn_find_rev(self, revision_or_treeish, branch=None): 327 # git svn find-rev requires SVN revisions to begin with the character 'r'. 328 command = ['svn', 'find-rev', revision_or_treeish] 333 329 if branch: 334 330 command.append(branch) 335 331 332 # git svn find-rev always exits 0, even when the revision or commit is not found. 336 333 return self._run_git(command).rstrip() 337 334
Note: See TracChangeset
for help on using the changeset viewer.