From a67a731cb90795f43d3b20d4f410f31e420e57a9 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Thu, 6 May 2010 19:01:10 +0000 Subject: [PATCH] Add "gcl description " 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 --- gcl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcl.py b/gcl.py index f782985a4..ad704a71f 100755 --- a/gcl.py +++ b/gcl.py @@ -661,6 +661,9 @@ Advanced commands: Diffs all files in the current directory and subdirectories that aren't in a changelist. + gcl description + Prints the description of the specified change to stdout. + gcl changes Lists all the the changelists and the files in them. @@ -1219,6 +1222,8 @@ def main(argv=None): if command == "change": Change(change_info, argv[3:]) + if command == "description": + print change_info.description elif command == "lint": Lint(change_info, argv[3:]) elif command == "upload":