# HG changeset patch # User Pulkit Goyal # Date 1539299543 -10800 # Node ID 5dd45784a8e0cc068f807525be42f818d8bde0de # Parent fb0962b5e9e7b7175b6e2c2dee6f74bfebfcbfa2 rewind: alias the command to undo This is a step in unifiying rewind and undo and not talk about them as different commands or concepts. If there exists rewind command, that should be an alias of undo and the vice versa. The exact implmentation detail and how the command works etc. is a different thing but there should be just one command. diff -r fb0962b5e9e7 -r 5dd45784a8e0 CHANGELOG --- a/CHANGELOG Fri Oct 12 01:23:16 2018 +0200 +++ b/CHANGELOG Fri Oct 12 02:12:23 2018 +0300 @@ -6,6 +6,7 @@ * evolve: avoid redundant output when handling linear orphans * evolve: use stack alias s# in `hg evolve` messages + * rewind: add an undo alias 8.2.1 -- 2018-09-14 ------------------- diff -r fb0962b5e9e7 -r 5dd45784a8e0 hgext3rd/evolve/rewind.py --- a/hgext3rd/evolve/rewind.py Fri Oct 12 01:23:16 2018 +0200 +++ b/hgext3rd/evolve/rewind.py Fri Oct 12 02:12:23 2018 +0300 @@ -26,7 +26,7 @@ identicalflag = 4 @eh.command( - '^rewind', + '^rewind|undo', [('', 'to', [], _("rewind to these revisions")), ('', 'as-divergence', None, _("preserve current latest successors")), ('', 'exact', None, _("only rewind explicitly selected revisions")),