# HG changeset patch # User Pierre-Yves David # Date 1521463627 -3600 # Node ID 93deeed63908c5113c832804c7855f0eab616945 # Parent 7bd516e0a92949d10b4f07d62d486f7b95043fa3 evolve: fix missing negation Spotted by Pulkit Goyal. diff -r 7bd516e0a929 -r 93deeed63908 hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Mon Mar 19 12:01:07 2018 +0100 +++ b/hgext3rd/evolve/evolvecmd.py Mon Mar 19 13:47:07 2018 +0100 @@ -132,9 +132,9 @@ selectedrev = utility.revselectionprompt(ui, repo, list(heads), cheader) if selectedrev is None: - msg = ("could solve instability, " - "ambiguous destination: " - "parent split across two branches\n") + msg = ("could not solve instability, " + "ambiguous destination: " + "parent split across two branches\n") ui.write_err(msg) return (False, '') target = repo[selectedrev] diff -r 7bd516e0a929 -r 93deeed63908 tests/test-evolve-orphan-split.t --- a/tests/test-evolve-orphan-split.t Mon Mar 19 12:01:07 2018 +0100 +++ b/tests/test-evolve-orphan-split.t Mon Mar 19 13:47:07 2018 +0100 @@ -220,7 +220,7 @@ q: quit the prompt enter the index of the revision you want to select: foo invalid value 'foo' entered for index - could solve instability, ambiguous destination: parent split across two branches + could not solve instability, ambiguous destination: parent split across two branches $ hg evolve --all < 4 @@ -232,7 +232,7 @@ q: quit the prompt enter the index of the revision you want to select: 4 invalid value '4' entered for index - could solve instability, ambiguous destination: parent split across two branches + could not solve instability, ambiguous destination: parent split across two branches $ hg evolve --all < -1 @@ -244,7 +244,7 @@ q: quit the prompt enter the index of the revision you want to select: -1 invalid value '-1' entered for index - could solve instability, ambiguous destination: parent split across two branches + could not solve instability, ambiguous destination: parent split across two branches $ hg evolve --all < q @@ -255,7 +255,7 @@ 1: [7f87764e5b64] added a b c q: quit the prompt enter the index of the revision you want to select: q - could solve instability, ambiguous destination: parent split across two branches + could not solve instability, ambiguous destination: parent split across two branches Doing the evolve with the interactive prompt