Commits

Pierre-Yves David committed 121e2d2

alias: add a grab alias

Its a valid replacement for graft -O

  • Participants
  • Parent commits 7daf429

Comments (0)

Files changed (3)

File hgext/evolve.py

         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
 

File tests/test-stabilize-result.t

 
 Get a successors of 8 on it
 
-  $ hg graft -O 8
-  grafting revision 8
+  $ hg grab 8
 
 Add real change to the successors
 

File tests/test-tutorial.t

 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