Commit a67a731c authored by maruel@chromium.org's avatar maruel@chromium.org

Add "gcl description <change>" subcommand.

Prints the multi-line change description.
(Used in forthcoming Emacs gcl integration.)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@46599 0039d316-1c4b-4281-b951-d872f2087c98
parent 3c55d981
...@@ -661,6 +661,9 @@ Advanced commands: ...@@ -661,6 +661,9 @@ Advanced commands:
Diffs all files in the current directory and subdirectories that aren't in Diffs all files in the current directory and subdirectories that aren't in
a changelist. a changelist.
gcl description
Prints the description of the specified change to stdout.
gcl changes gcl changes
Lists all the the changelists and the files in them. Lists all the the changelists and the files in them.
...@@ -1219,6 +1222,8 @@ def main(argv=None): ...@@ -1219,6 +1222,8 @@ def main(argv=None):
if command == "change": if command == "change":
Change(change_info, argv[3:]) Change(change_info, argv[3:])
if command == "description":
print change_info.description
elif command == "lint": elif command == "lint":
Lint(change_info, argv[3:]) Lint(change_info, argv[3:])
elif command == "upload": elif command == "upload":
......
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