From c3d17dd54afdbc8e47065da4fd02a0155ff2ec6d Mon Sep 17 00:00:00 2001 From: "binji@chromium.org" Date: Thu, 19 Dec 2013 00:55:31 +0000 Subject: [PATCH] git_cl.py: In the "status" command, add space after the branch name. i.e. the output looks like: my-branch-name : https://codereview.chromium.org/1234567 my-other-branch : https://codereview.chromium.org/8675309 This makes it possible to double-click the branch name to use it in a subsequent command. BUG=none R=maruel@chromium.org Review URL: https://codereview.chromium.org/118613003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@241731 0039d316-1c4b-4281-b951-d872f2087c98 --- git_cl.py | 2 +- tests/basic.sh | 2 +- tests/push-basic.sh | 2 +- tests/push-from-logs.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/git_cl.py b/git_cl.py index d01c35416..da3808a8b 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1228,7 +1228,7 @@ def CMDstatus(parser, args): if not sys.stdout.isatty(): color = '' reset = '' - print ' %*s: %s%s%s' % ( + print ' %*s : %s%s%s' % ( alignment, ShortBranchName(branch), color, issue, reset) cl = Changelist() diff --git a/tests/basic.sh b/tests/basic.sh index 8b7f64b2f..aeac0f135 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -54,7 +54,7 @@ setup_gitsvn "git show | grep -q 'foo-quux'" test_expect_success "issue no longer has a branch" \ - "$GIT_CL_STATUS | grep -q 'work: None'" + "$GIT_CL_STATUS | grep -q 'work : None'" test_expect_success "upstream svn has our commit" \ "svn log $REPO_URL 2>/dev/null | grep -q 'foo-quux'" diff --git a/tests/push-basic.sh b/tests/push-basic.sh index 6b255bcbf..1f9cb275c 100755 --- a/tests/push-basic.sh +++ b/tests/push-basic.sh @@ -57,7 +57,7 @@ setup_gitgit "git show | grep -q 'foo-quux'" test_expect_success "issue no longer has a branch" \ - "$GIT_CL_STATUS | grep -q 'work: None'" + "$GIT_CL_STATUS | grep -q 'work : None'" cd $GITREPO_PATH test_expect_success "upstream repo has our commit" \ diff --git a/tests/push-from-logs.sh b/tests/push-from-logs.sh index aba4cb242..67cc2dc9a 100755 --- a/tests/push-from-logs.sh +++ b/tests/push-from-logs.sh @@ -56,7 +56,7 @@ setup_gitgit "git show | [ $( egrep -q '^branch work$' -c ) -eq 2 ] test_expect_success "issue no longer has a branch" \ - "$GIT_CL_STATUS | grep -q 'work: None'" + "$GIT_CL_STATUS | grep -q 'work : None'" cd $GITREPO_PATH test_expect_success "upstream repo has our commit" \