Commit 411034a2 authored by groby@chromium.org's avatar groby@chromium.org

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
parent 6b1e3ee9
......@@ -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)
......
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