# HG changeset patch # User Pierre-Yves David # Date 1360356318 0 # Node ID 121e2d265e85fe86a6b6215aca902c42b7305a28 # Parent 7daf42959b7216be7845071c070703c090a13c9a alias: add a grab alias Its a valid replacement for graft -O diff -r 7daf42959b72 -r 121e2d265e85 hgext/evolve.py --- a/hgext/evolve.py Fri Feb 08 20:18:40 2013 +0000 +++ b/hgext/evolve.py Fri Feb 08 20:45:18 2013 +0000 @@ -380,6 +380,9 @@ ui.setconfig('alias', 'olog', "log -r 'precursors(.)' --hidden") if ui.config('alias', 'odiff', None) is None: ui.setconfig('alias', 'odiff', "diff --hidden --rev 'limit(precursors(.),1)' --rev .") + if ui.config('alias', 'grab', None) is None: + ui.setconfig('alias', 'grab', "rebase --dest . --rev $1") + ### Troubled revset symbol diff -r 7daf42959b72 -r 121e2d265e85 tests/test-stabilize-result.t --- a/tests/test-stabilize-result.t Fri Feb 08 20:18:40 2013 +0000 +++ b/tests/test-stabilize-result.t Fri Feb 08 20:45:18 2013 +0000 @@ -120,8 +120,7 @@ Get a successors of 8 on it - $ hg graft -O 8 - grafting revision 8 + $ hg grab 8 Add real change to the successors diff -r 7daf42959b72 -r 121e2d265e85 tests/test-tutorial.t --- a/tests/test-tutorial.t Fri Feb 08 20:18:40 2013 +0000 +++ b/tests/test-tutorial.t Fri Feb 08 20:45:18 2013 +0000 @@ -335,7 +335,7 @@ totally happy with yet. To be able to push "SPAM SPAM" I need a version of "SPAM SPAM" which is not a child of "bathroom stuff" -You can use 'rebase -r' or 'graft -O' for that: +You can use 'rebase -r' or 'grab' for that: $ hg up 'p1(10b8aeaa8cc8)' # going on "bathroom stuff" parent 1 files updated, 0 files merged, 0 files removed, 0 files unresolved