OSDN Git Service

[GitSVN][NFC] Mark dry-run commits as such in the log output
authorJohannes Doerfert <jdoerfert@anl.gov>
Sun, 14 Jul 2019 18:24:19 +0000 (18:24 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Sun, 14 Jul 2019 18:24:19 +0000 (18:24 +0000)
Summary: This helps to avoid worries about the "dry run flag" while testing.

Reviewers: jyknight, rnk, mehdi_amini

Subscribers: bollu, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64697

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366023 91177308-0d34-0410-b5e6-96231b3b80d8

utils/git-svn/git-llvm

index 399e552..289898d 100755 (executable)
@@ -420,8 +420,8 @@ def cmd_push(args):
     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 '',