Fix regexp in roll_dep.py.

The fallback code was parsing DEPS entries improperly.

BUG=None

Review URL: https://codereview.chromium.org/1699333002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298839 0039d316-1c4b-4281-b951-d872f2087c98
changes/01/332501/1
rohitrao@chromium.org 9 years ago
parent 3215234993
commit d4ef599ba1

@ -95,7 +95,7 @@ def roll(root, deps_dir, roll_to, key, reviewers, bug, no_log, log_limit,
# It happens if the user checked out a branch in the dependency by himself.
# Fall back to reading the DEPS to figure out the original commit.
for i in deps_content.splitlines():
m = re.match(r'\s+"' + key + '": "([a-z0-9]{40})",', i)
m = re.match(r'\s+"' + key + '":.*"([a-z0-9]{40})",', i)
if m:
head = m.group(1)
break

Loading…
Cancel
Save