Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(783)

Unified Diff: git_cl.py

Issue 12330131: Added command-line way to close issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Address review comments. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index e0bf935cd99cb2e74317f8dda2e89713e0b358af..e4c3a7154f00770b8b32b853a174597fd217b5df 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698