# HG changeset patch # User Pierre-Yves David # Date 1435202621 25200 # Node ID 09206bdc2db421b48dc53f9d0ebcb4354bf7d568 # Parent a73d1ee480033c93064e530d8309255817460867 next: reword error output We move to a more compact and direct phrasing. I'm not fully happy about it yet, but this is a step forward. The listing of candidate should maybe be moved behind a --verbose flag (and such verbose flag be suggested in the error). G: changed tests/test-prev-next.t diff --git a/README b/README --- a/README +++ b/README @@ -64,9 +64,10 @@ - evolve: `hg evolve --all` only evolve changeset that will end up as descendant of the current working copy. The old behavior of `--all` in now in `--all --any`. -- next/prev: requires `--merge` to move with uncommited changes - evolve: add a 'experimental.evolutioncommands' for fine grained commands enabling +- next/prev: requires `--merge` to move with uncommited changes +- next: significantly reword error messages 5.1.5 -- 2015-06-23 diff --git a/hgext/evolve.py b/hgext/evolve.py --- a/hgext/evolve.py +++ b/hgext/evolve.py @@ -2036,13 +2036,13 @@ displayer.show(c) result = 0 elif children: + ui.warn("ambigious next changeset:\n") for c in children: displayer.show(c) - ui.warn(_('multiple non-obsolete children, ' - 'explicitly update to one of them\n')) + ui.warn(_('explicitly update to one of them\n')) result = 1 else: - ui.warn(_('no non-obsolete children\n')) + ui.warn(_('no children\n')) result = 1 return result diff --git a/tests/test-prev-next.t b/tests/test-prev-next.t --- a/tests/test-prev-next.t +++ b/tests/test-prev-next.t @@ -135,7 +135,7 @@ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved [2] added c $ hg next - no non-obsolete children + no children [1] $ hg prev 0 files updated, 0 files merged, 1 files removed, 0 files unresolved @@ -146,7 +146,7 @@ $ hg amend -m 'added b (2)' 1 new unstable changesets $ hg next - no non-obsolete children + no children [1] $ hg evolve move:[2] added c @@ -166,9 +166,10 @@ 0 files updated, 0 files merged, 1 files removed, 0 files unresolved [3] added b (2) $ hg next + ambigious next changeset: [4] added c [5] added d - multiple non-obsolete children, explicitly update to one of them + explicitly update to one of them [1] next with ambiguity in aspiring children @@ -176,7 +177,7 @@ $ hg am -m 'added b (3)' 2 new unstable changesets $ hg next - no non-obsolete children + no children [1] $ hg evolve abort: multiple evolve candidates