Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: tools/findit/chromium_deps.py

Issue 510163002: [Findit] Fix blame for GIT and uptake bug fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reupload Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/findit/blame.py ('k') | tools/findit/crash_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/findit/chromium_deps.py
diff --git a/tools/findit/chromium_deps.py b/tools/findit/chromium_deps.py
index 97d31cf9574259613292e18b033fc269675f4b5a..e512688bc60b16aca0f78f4c64f435c8b5af0169 100644
--- a/tools/findit/chromium_deps.py
+++ b/tools/findit/chromium_deps.py
@@ -5,6 +5,7 @@
import base64
import json
import os
+import re
import time
import urllib2
@@ -14,6 +15,7 @@ from common import utils
_THIS_DIR = os.path.abspath(os.path.dirname(__file__))
CONFIG = json.loads(open(os.path.join(_THIS_DIR,
'deps_config.json'), 'r').read())
+OLD_GIT_URL_PATTERN = re.compile(r'https?://git.chromium.org/(.*)')
class _VarImpl(object):
@@ -147,6 +149,9 @@ def GetChromiumComponents(chromium_revision,
name = _GetComponentName(component_path, host_dirs)
repository, revision = component_repo_url.split('@')
+ match = OLD_GIT_URL_PATTERN.match(repository)
+ if match:
+ repository = 'https://chromium.googlesource.com/%s' % match.group(1)
is_git_hash = utils.IsGitHash(revision)
if is_git_hash:
repository_type = 'git'
« no previous file with comments | « tools/findit/blame.py ('k') | tools/findit/crash_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698