From b54343d9fd682bcdb1510042d93fdf38979b9eb7 Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Mon, 10 Jul 2017 10:31:24 +0200 Subject: Tell the user if it will upload a draft Change-Id: Ie004ec9d61603f3f618c47597947b82c59f2839c --- subcmds/upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'subcmds/upload.py') diff --git a/subcmds/upload.py b/subcmds/upload.py index 1172dadc..38c061df 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -198,7 +198,8 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ commit_list = branch.commits destination = opt.dest_branch or project.dest_branch or project.revisionExpr - print('Upload project %s/ to remote branch %s:' % (project.relpath, destination)) + print('Upload project %s/ to remote branch %s%s:' % + (project.relpath, destination, ' (draft)' if opt.draft else '')) print(' branch %s (%2d commit%s, %s):' % ( name, len(commit_list), -- cgit v1.2.3-54-g00ecf