Changeset 158828 in webkit
- Timestamp:
- Nov 7, 2013 1:21:08 AM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r158767 r158828 1 2013-11-07 Peter Molnar <pmolnar.u-szeged@partner.samsung.com> 2 3 Change git_commit_from_svn_revision() to work in a pure git checkout 4 https://bugs.webkit.org/show_bug.cgi?id=111668 5 6 Reviewed by Ryosuke Niwa. 7 8 * Scripts/webkitpy/common/checkout/scm/git.py: 9 (Git.git_commit_from_svn_revision): 10 1 11 2013-11-06 Jer Noble <jer.noble@apple.com> 2 12 -
trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py
r153639 r158828 311 311 @memoized 312 312 def git_commit_from_svn_revision(self, svn_revision): 313 # FIXME: https://bugs.webkit.org/show_bug.cgi?id=111668 314 # We should change this to run git log --grep 'git-svn-id' instead 315 # so that we don't require git+svn to be set up. 316 git_commit = self._run_git_svn_find_rev('r%s' % svn_revision) 313 git_log = self._run_git(['log', '-1', '--grep=^\s*git-svn-id:.*@%s ' % svn_revision]) 314 git_commit = re.search("^commit (?P<commit>[a-f0-9]{40})", git_log) 317 315 if not git_commit: 318 316 # FIXME: Alternatively we could offer to update the checkout? Or return None? 319 317 raise ScriptError(message='Failed to find git commit for revision %s, your checkout likely needs an update.' % svn_revision) 320 return git_commit318 return str(git_commit.group('commit')) 321 319 322 320 @memoized
Note: See TracChangeset
for help on using the changeset viewer.