diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-24 19:13:22 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-24 19:13:22 +0000 |
commit | 30aa3ee0461f0475180d50d4adc4b925fe7e1315 (patch) | |
tree | c00a1eb175e6f26feae5d1f405b4e918a1101d27 /build/util | |
parent | 706d9ca9c346a50ce93cb1ffa8c9d03368215a94 (diff) | |
download | chromium_src-30aa3ee0461f0475180d50d4adc4b925fe7e1315.zip chromium_src-30aa3ee0461f0475180d50d4adc4b925fe7e1315.tar.gz chromium_src-30aa3ee0461f0475180d50d4adc4b925fe7e1315.tar.bz2 |
lastchange: skip over git-svn "rebuilding..." lines
Sometimes git-svn prints extra status info.
From a glance at the source, there's no flag to skip it.
So just skip it when parsing.
Review URL: http://codereview.chromium.org/6349010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/util')
-rwxr-xr-x | build/util/lastchange.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/util/lastchange.py b/build/util/lastchange.py index 15c0a1f..3718c54 100755 --- a/build/util/lastchange.py +++ b/build/util/lastchange.py @@ -63,7 +63,9 @@ def FetchSVNRevision(command, directory): attrs = {} for line in proc.stdout: line = line.strip() - if not line: + # git-svn can print out extra "Rebuilding ..." lines, which we don't + # care about and want to skip over. + if not line or ': ' not in line: continue key, val = line.split(': ', 1) attrs[key] = val |