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

Unified Diff: git_cl.py

Issue 1222383008: Make 'git cl status' report the current branch even if there's no active CL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 5 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 bad7c57ac83b666c04e8c59d49add3575fd173d2..410efa68255a7541b653a44b2c33d0804c2f45b2 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -787,7 +787,7 @@ or verify this branch is set up to track another (via the --track argument to
if upstream_git_obj is None:
if self.GetBranch() is None:
print >> sys.stderr, (
- 'ERROR: unable to dertermine current branch (detached HEAD?)')
+ 'ERROR: unable to determine current branch (detached HEAD?)')
else:
print >> sys.stderr, (
'ERROR: no upstream branch')
@@ -1697,10 +1697,10 @@ def CMDstatus(parser, args):
cl = Changelist(auth_config=auth_config)
print
print 'Current branch:',
+ print cl.GetBranch()
if not cl.GetIssue():
- print 'no issue assigned.'
+ print 'No issue assigned.'
return 0
- print cl.GetBranch()
print 'Issue number: %s (%s)' % (cl.GetIssue(), cl.GetIssueURL())
if not options.fast:
print 'Issue description:'
« 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