瀏覽代碼

upload: fix display of destination branch for SingleBranch

The command `repo upload --cbr -D <some branch>` 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
Chirayu Desai 12 年之前
父節點
當前提交
610d3c4e46
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      subcmds/upload.py

+ 1 - 1
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,