Commit c3d17dd5 authored by binji@chromium.org's avatar binji@chromium.org

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
parent 43064fd5
...@@ -1228,7 +1228,7 @@ def CMDstatus(parser, args): ...@@ -1228,7 +1228,7 @@ def CMDstatus(parser, args):
if not sys.stdout.isatty(): if not sys.stdout.isatty():
color = '' color = ''
reset = '' reset = ''
print ' %*s: %s%s%s' % ( print ' %*s : %s%s%s' % (
alignment, ShortBranchName(branch), color, issue, reset) alignment, ShortBranchName(branch), color, issue, reset)
cl = Changelist() cl = Changelist()
......
...@@ -54,7 +54,7 @@ setup_gitsvn ...@@ -54,7 +54,7 @@ setup_gitsvn
"git show | grep -q 'foo-quux'" "git show | grep -q 'foo-quux'"
test_expect_success "issue no longer has a branch" \ 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" \ test_expect_success "upstream svn has our commit" \
"svn log $REPO_URL 2>/dev/null | grep -q 'foo-quux'" "svn log $REPO_URL 2>/dev/null | grep -q 'foo-quux'"
......
...@@ -57,7 +57,7 @@ setup_gitgit ...@@ -57,7 +57,7 @@ setup_gitgit
"git show | grep -q 'foo-quux'" "git show | grep -q 'foo-quux'"
test_expect_success "issue no longer has a branch" \ 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 cd $GITREPO_PATH
test_expect_success "upstream repo has our commit" \ test_expect_success "upstream repo has our commit" \
......
...@@ -56,7 +56,7 @@ setup_gitgit ...@@ -56,7 +56,7 @@ setup_gitgit
"git show | [ $( egrep -q '^branch work$' -c ) -eq 2 ] "git show | [ $( egrep -q '^branch work$' -c ) -eq 2 ]
test_expect_success "issue no longer has a branch" \ 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 cd $GITREPO_PATH
test_expect_success "upstream repo has our commit" \ test_expect_success "upstream repo has our commit" \
......
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