diff options
author | agable <agable@chromium.org> | 2015-04-21 12:34:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-21 19:34:57 +0000 |
commit | ead70ba1e0db6dfd9bdb722363b2cfbc41d1a7d6 (patch) | |
tree | b0b166841394dd17245f119efcecf47b454e110b /build | |
parent | a5399e03bc7bea4e838bc0ea280503506006c6e6 (diff) | |
download | chromium_src-ead70ba1e0db6dfd9bdb722363b2cfbc41d1a7d6.zip chromium_src-ead70ba1e0db6dfd9bdb722363b2cfbc41d1a7d6.tar.gz chromium_src-ead70ba1e0db6dfd9bdb722363b2cfbc41d1a7d6.tar.bz2 |
Break out after finding Cr-Commit-Position in lastchange
R=mmoss@chromium.org
BUG=478179
Review URL: https://codereview.chromium.org/1093233002
Cr-Commit-Position: refs/heads/master@{#326097}
Diffstat (limited to 'build')
-rwxr-xr-x | build/util/lastchange.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build/util/lastchange.py b/build/util/lastchange.py index d1c33e8..1a7f519 100755 --- a/build/util/lastchange.py +++ b/build/util/lastchange.py @@ -115,6 +115,7 @@ def FetchGitRevision(directory): for line in reversed(output.splitlines()): if line.startswith('Cr-Commit-Position:'): pos = line.rsplit()[-1].strip() + break if not pos: return VersionInfo('git', hsh) return VersionInfo('git', '%s-%s' % (hsh, pos)) |