Commits

Pierre-Yves David committed bfdfdf7

grab: update the alias for 2.8 compatibility

2.8 does not update on rebase anymore. We need to update by hand. this makes
this alias more fragile.

Comments (0)

Files changed (3)

 - evolve command: allow updating to the successor if the parent is
   obsolete
 - gdown and gup commands: add next and previous alias, respectively
+- make grab aliases compatible with Mercurial 2.8
 
 3.1.0 -- 2013-02-11
 
     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")
+        ui.setconfig('alias', 'grab', "! $HG rebase --dest . --rev $@ && $HG up tip")
 
 
 ### Troubled revset symbol

tests/test-stabilize-result.t

 Get a successors of 8 on it
 
   $ hg grab 8
-  $ hg update tip
   ? files updated, 0 files merged, 0 files removed, 0 files unresolved (glob)
 
 Add real change to the successors