evolve: fix suggested commands in "parents are not common" hint stable
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 05 Nov 2014 15:35:13 -0800
branchstable
changeset 1153 4241a5162de7
parent 1152 be6eff57d5bb
child 1156 0f53c24096c6
evolve: fix suggested commands in "parents are not common" hint The argument to 'hg rebase' is --dest, not -dest. Also, the same command should not be suggested twice -- the second option should be the rebasing the other way around.
hgext/evolve.py
--- a/hgext/evolve.py	Wed Nov 05 15:32:25 2014 -0800
+++ b/hgext/evolve.py	Wed Nov 05 15:35:13 2014 -0800
@@ -1494,8 +1494,8 @@
                          "| evolve does not work in that case.\n"
                          "| rebase one of them next to the other and run \n"
                          "| this command again.\n"
-                         "| - either: hg rebase -dest 'p1(%(d)s)' -r %(o)s\n"
-                         "| - or:     hg rebase -dest 'p1(%(d)s)' -r %(o)s"
+                         "| - either: hg rebase --dest 'p1(%(d)s)' -r %(o)s\n"
+                         "| - or:     hg rebase --dest 'p1(%(o)s)' -r %(d)s"
                               % {'d': divergent, 'o': other})
 
     displayer = cmdutil.show_changeset(ui, repo, {'template': shorttemplate})