--- a/hgext3rd/evolve/__init__.py Wed Nov 15 00:30:15 2017 +0100
+++ b/hgext3rd/evolve/__init__.py Thu Nov 16 11:22:38 2017 -0800
@@ -2031,7 +2031,8 @@
finally:
lockmod.release(tr, lock)
- displayer.show(target)
+ if not repo.ui.quiet:
+ displayer.show(target)
def _findprevtarget(repo, displayer, movebookmark=False, topic=True):
target = bookmark = None
@@ -2174,7 +2175,8 @@
tr.close()
finally:
lockmod.release(tr, lock)
- displayer.show(c)
+ if not ui.quiet:
+ displayer.show(c)
result = 0
elif children:
ui.warn(_("ambigious next changeset:\n"))
--- a/tests/test-prev-next.t Wed Nov 15 00:30:15 2017 +0100
+++ b/tests/test-prev-next.t Thu Nov 16 11:22:38 2017 -0800
@@ -3,7 +3,7 @@
> EOF
$ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH
-hg prev -B should move active bookmark
+hg prev & next move to parent/child
$ hg init test-repo
$ cd test-repo
$ touch a
@@ -12,6 +12,18 @@
$ touch b
$ hg add b
$ hg commit -m 'added b'
+ $ hg prev
+ 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+ [0] added a
+ $ hg next
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ [1] added b
+
+hg prev & next respect --quiet
+ $ hg prev -q
+ $ hg next -q
+
+hg prev -B should move active bookmark
$ hg bookmark mark
$ hg bookmarks
* mark 1:6e742c9127b3