Added command-line way to close issues.

BUG=none


Review URL: https://chromiumcodereview.appspot.com/12330131

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@184652 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
groby@chromium.org 13 years ago
parent 6b1e3ee9e3
commit 411034a2bf

@ -1797,6 +1797,18 @@ def CMDset_commit(parser, args):
return 0
def CMDset_close(parser, args):
"""close the issue"""
_, args = parser.parse_args(args)
if args:
parser.error('Unrecognized args: %s' % ' '.join(args))
cl = Changelist()
# Ensure there actually is an issue to close.
cl.GetDescription()
cl.CloseIssue()
return 0
def Command(name):
return getattr(sys.modules[__name__], 'CMD' + name, None)

Loading…
Cancel
Save