Commits

Anonymous committed 27b3442

tutorial: use grab instead of rebase.

grab as now the advantage to move the working directory.

Comments (0)

Files changed (1)

tests/test-tutorial.t

  not 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 'grab' for that:
+You can use the 'grab' alias for that.
+
+.. note: grab is an alias for `hg rebase --dest . --rev <target>; hg up <there>`
 
   $ hg up 'p1(10b8aeaa8cc8)' # going on "bathroom stuff" parent
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  $ hg rebase --rev fac207dec9f5 --dest . # moving "SPAM SPAM" to the working directory parent
+  $ hg grab fac207dec9f5 # moving "SPAM SPAM" to the working directory parent
   merging shopping
-  $ hg up tip
   ? files updated, 0 files merged, 0 files removed, 0 files unresolved (glob)
   $ hg log -G
   @  a224f2a4fb9f (draft): SPAM SPAM
 
 for simplicity sake we get the bathroom change in line again
 
-  $ hg rebase -r 10b8aeaa8cc8 -d a224f2a4fb9f
+  $ hg grab 10b8aeaa8cc8
   merging shopping
-  $ hg up tip
   ? files updated, 0 files merged, 0 files removed, 0 files unresolved (glob)
   $ hg phase --draft .
   $ hg log -G