Commits

Dan Villiom Podlaski Christiansen committed 1626068

New patch.

Comments (0)

Files changed (2)

lower-verbosity.diff

+# HG changeset patch
+# Parent 26e9fd21f3bf74697e1faee15a6a0c6be671130d
+# User Dan Villiom Podlaski Christiansen  <danchr@gmail.com>
+decrease verbosity somewhat
+
+while at it, follow convention that output starts with lowercase
+letters
+
+diff --git a/hgsubversion/wrappers.py b/hgsubversion/wrappers.py
+--- a/hgsubversion/wrappers.py
++++ b/hgsubversion/wrappers.py
+@@ -236,7 +236,7 @@ def push(repo, dest, force, revs):
+                     def extrafn(ctx, extra):
+                         extra['branch'] = ctx.branch()
+ 
+-                    ui.status('rebasing %s onto %s \n' % (current_ctx, tip_ctx))
++                    ui.note('rebasing %s onto %s \n' % (current_ctx, tip_ctx))
+                     hgrebase.rebase(ui, repo,
+                                     dest=node.hex(tip_ctx.node()),
+                                     rev=[node.hex(current_ctx.node())],
+@@ -290,7 +290,8 @@ def push(repo, dest, force, revs):
+                         def extrafn(ctx, extra):
+                             extra['branch'] = ctx.branch()
+ 
+-                        ui.status('rebasing non-outgoing %s onto %s\n' % (c, tip_ctx))
++                        ui.note('rebasing non-outgoing %s onto %s\n'
++                                % (c, tip_ctx))
+                         needs_rebase_set = "%s::" % node.hex(c.node())
+                         hgrebase.rebase(ui, repo,
+                                         dest=node.hex(tip_ctx.node()),
+@@ -499,10 +500,10 @@ def rebase(orig, ui, repo, **opts):
+     hashes = meta.revmap.hashes()
+     o_r = util.outgoing_revisions(repo, hashes, sourcerev=sourcerev)
+     if not o_r:
+-        ui.status('Nothing to rebase!\n')
++        ui.note('nothing to rebase!\n')
+         return 0
+     if len(repo[sourcerev].children()):
+-        ui.status('Refusing to rebase non-head commit like a coward\n')
++        ui.status('refusing to rebase non-head commit like a coward!\n')
+         return 0
+     parent_rev = repo[o_r[-1]].parents()[0]
+     target_rev = parent_rev
+@@ -517,7 +518,7 @@ def rebase(orig, ui, repo, **opts):
+                 exhausted_choices = False
+                 break
+     if parent_rev == target_rev:
+-        ui.status('Already up to date!\n')
++        ui.status('already up to date!\n')
+         return 0
+     return orig(ui, repo, dest=node.hex(target_rev.node()),
+                 base=node.hex(sourcerev),
+lower-verbosity.diff
 bug-171.diff
 test-hex.diff
 drop-unused-flags.diff
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.