summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
authorJonathan Nieder <jrn@google.com>2017-08-08 18:34:53 +0000
committerJonathan Nieder <jrn@google.com>2017-08-08 18:34:53 +0000
commitc94d6eb90233421b431adbd5a01b7ec24729a285 (patch)
treeab8bb74e27b845419ef57048044d758ff3eb1d3f /subcmds
parentd88f53e2b9634b9645f80b2d8e653beac24711fe (diff)
downloadgit-repo-c94d6eb90233421b431adbd5a01b7ec24729a285.tar.gz
Revert "Migrate git-repo to create private changes rather than drafts"
This reverts commit d88f53e2b9634b9645f80b2d8e653beac24711fe. I merged it too hastily without paying enough attention to compatibility with released Gerrit versions. Change-Id: I4028d4737df1255f11e217da183a19a010597d5b
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/upload.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py
index f40ac9df..61b18bc2 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -152,8 +152,8 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
152 dest='current_branch', action='store_true', 152 dest='current_branch', action='store_true',
153 help='Upload current git branch.') 153 help='Upload current git branch.')
154 p.add_option('-d', '--draft', 154 p.add_option('-d', '--draft',
155 action='store_true', dest='private', default=False, 155 action='store_true', dest='draft', default=False,
156 help='(Deprecated). If specified, upload as a private change.') 156 help='If specified, upload as a draft.')
157 p.add_option('-p', '--private', 157 p.add_option('-p', '--private',
158 action='store_true', dest='private', default=False, 158 action='store_true', dest='private', default=False,
159 help='If specified, upload as a private change.') 159 help='If specified, upload as a private change.')
@@ -205,7 +205,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
205 205
206 destination = opt.dest_branch or project.dest_branch or project.revisionExpr 206 destination = opt.dest_branch or project.dest_branch or project.revisionExpr
207 print('Upload project %s/ to remote branch %s%s:' % 207 print('Upload project %s/ to remote branch %s%s:' %
208 (project.relpath, destination, ' (private)' if opt.private else '')) 208 (project.relpath, destination, ' (draft)' if opt.draft else ''))
209 print(' branch %s (%2d commit%s, %s):' % ( 209 print(' branch %s (%2d commit%s, %s):' % (
210 name, 210 name,
211 len(commit_list), 211 len(commit_list),
@@ -386,6 +386,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
386 386
387 branch.UploadForReview(people, 387 branch.UploadForReview(people,
388 auto_topic=opt.auto_topic, 388 auto_topic=opt.auto_topic,
389 draft=opt.draft,
389 private=opt.private, 390 private=opt.private,
390 wip=opt.wip, 391 wip=opt.wip,
391 dest_branch=destination) 392 dest_branch=destination)