gcl change <change> was broken when creating a new change list.

TEST=none
BUG=none

Review URL: http://codereview.chromium.org/119286

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@17841 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 16 years ago
parent de0ba297d9
commit 6cfadff1e9

@ -411,7 +411,7 @@ class ChangeInfo(object):
if not os.path.exists(info_file):
if fail_on_not_found:
ErrorExit("Changelist " + changename + " not found.")
return ChangeInfo(changename)
return ChangeInfo(changename, 0, 0, '', None)
split_data = ReadFile(info_file).split(ChangeInfo._SEPARATOR, 2)
if len(split_data) != 3:
ErrorExit("Changelist file %s is corrupt" % info_file)

Loading…
Cancel
Save