git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369538
91177308-0d34-0410-b5e6-
96231b3b80d8
for c in revs)))
# Ask confirmation if multiple commits are about to be pushed
- if len(revs) != 1:
+ if not args.force and len(revs) != 1:
if not ask_confirm("Are you sure you want to create %d commits?" % len(revs)):
die("Aborting")
help='Do everything other than commit to svn. Leaves junk in the svn '
'repo, so probably will not work well if you try to commit more '
'than one rev.')
+ parser_push.add_argument(
+ '-f',
+ '--force',
+ action='store_true',
+ help='Do not ask for confirmation when pushing multiple commits.')
parser_push.add_argument(
'rev_range',
metavar='GIT_REVS',