From 610d3c4e46471c8db555026969bb3e2eb75102f0 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Mon, 24 Jun 2013 14:02:12 +0530 Subject: [PATCH] upload: fix display of destination branch for SingleBranch The command `repo upload --cbr -D ` will display the default revision, and not the actual destination branch. Fix that and display the branch to which the change will be uploaded to. Change-Id: I712ed0871c819dce6774c47254dac4efec4532e0 --- subcmds/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subcmds/upload.py b/subcmds/upload.py index fc17670c..f5833dd3 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -189,7 +189,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ date = branch.date commit_list = branch.commits - destination = project.dest_branch or project.revisionExpr + destination = opt.dest_branch or project.dest_branch or project.revisionExpr print('Upload project %s/ to remote branch %s:' % (project.relpath, destination)) print(' branch %s (%2d commit%s, %s):' % ( name,