Commit d4ef599b authored by rohitrao@chromium.org's avatar rohitrao@chromium.org

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
parent 32152349
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment