Index: tools/bisect-builds.py |
diff --git a/tools/bisect-builds.py b/tools/bisect-builds.py |
index eb7e6d73398b90e0807e7f49abb3f7338d8bedc3..09b5804d2697e3f7daf32a0c9d59b1d7fceeecf1 100755 |
--- a/tools/bisect-builds.py |
+++ b/tools/bisect-builds.py |
@@ -67,6 +67,8 @@ GITHASH_TO_SVN_URL = { |
# CHROMIUM_GITHASH_TO_SVN_URL to get the chromium revision (svn revision). |
CHROMIUM_SEARCH_PATTERN = ( |
r'.*git-svn-id: svn://svn.chromium.org/chrome/trunk/src@(\d+) ') |
+CHROMIUM_SEARCH_PATTERN_NEW = ( |
+ r'Cr-Commit-Position: refs/heads/master@{#(\d+)}') |
# Search pattern to be matched in the json output from |
# BLINK_GITHASH_TO_SVN_URL to get the blink revision (svn revision). |
@@ -338,6 +340,12 @@ class PathContext(object): |
result = search_pattern.search(message[len(message)-1]) |
if result: |
return result.group(1) |
+ else: |
+ if depot == 'chromium': |
+ result = re.search(CHROMIUM_SEARCH_PATTERN_NEW, |
+ message[len(message)-1]) |
+ if result: |
+ return result.group(1) |
print 'Failed to get svn revision number for %s' % git_sha1 |
raise ValueError |