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

Unified Diff: git_cl.py

Issue 2252473004: git-cl status: allow querying just the status of current CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 4 years, 4 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 41bbb9800ecf68e8a24e5e9b0f9ce055009f8074..c03d6103d734c847562babc819440241a82e73c5 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -3271,7 +3271,7 @@ def CMDstatus(parser, args):
Also see 'git cl comments'.
"""
parser.add_option('--field',
- help='print only specific field (desc|id|patch|url)')
+ help='print only specific field (desc|id|patch|status|url)')
parser.add_option('-f', '--fast', action='store_true',
help='Do not retrieve review status')
parser.add_option(
@@ -3296,6 +3296,8 @@ def CMDstatus(parser, args):
patchset = cl.GetPatchset()
if patchset:
print(patchset)
+ elif options.field == 'status':
+ print(cl.GetStatus())
elif options.field == 'url':
url = cl.GetIssueURL()
if url:
« 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