[PATCH] D64697: [GitSVN][NFC] Mark dry-run commits as such in the log output
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 13 09:59:38 PDT 2019
jdoerfert created this revision.
jdoerfert added reviewers: jyknight, rnk, mehdi_amini.
Herald added a subscriber: bollu.
Herald added a project: LLVM.
This helps to avoid worries about the "dry run flag" while testing.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64697
Files:
llvm/utils/git-svn/git-llvm
Index: llvm/utils/git-svn/git-llvm
===================================================================
--- llvm/utils/git-svn/git-llvm
+++ llvm/utils/git-svn/git-llvm
@@ -420,8 +420,8 @@
rev_range = args.rev_range
dry_run = args.dry_run
revs = get_revs_to_push(rev_range)
- log('Pushing %d %s commit%s:\n%s' %
- (len(revs),
+ log('%sPushing %d %s commit%s:\n%s' %
+ ('[DryRun] ' if dry_run else '', len(revs),
'split-repo (%s)' % split_repo_path
if split_repo_path else 'monorepo',
's' if len(revs) != 1 else '',
@@ -601,7 +601,7 @@
'--dry-run',
dest='dry_run',
action='store_true',
- help='Do everything other than perform a revert. Prints the git '
+ help='Do everything other than perform a revert. Orints the git '
'revert command it would have run.')
parser_revert.set_defaults(func=cmd_revert)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64697.209702.patch
Type: text/x-patch
Size: 922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190713/621d16a8/attachment.bin>
More information about the llvm-commits
mailing list