# HG changeset patch # User Martin von Zweigbergk # Date 1510860158 28800 # Node ID 94e5235e95f5a90ae63be8ba12a5cbdfaeaff802 # Parent 8f74cf219be385f572149b0093f1edeadaedab17 evolve: make prev/next respect --quiet flag (issue5742) diff -r 8f74cf219be3 -r 94e5235e95f5 hgext3rd/evolve/__init__.py --- 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")) diff -r 8f74cf219be3 -r 94e5235e95f5 tests/test-prev-next.t --- 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