diff tests/test-obsolete.t @ 52:62bdc2567099

Rollback support
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 08 Sep 2011 17:32:51 +0200
parents d98e06ab8320
children d7b11772f0b5
line wrap: on
line diff
--- a/tests/test-obsolete.t	Thu Sep 08 17:15:20 2011 +0200
+++ b/tests/test-obsolete.t	Thu Sep 08 17:32:51 2011 +0200
@@ -203,3 +203,44 @@
   0
   - 1f0dee641bb7
 
+Test rollback support
+
+  $ hg up .^ -q
+  $ mkcommit "obsol_d''"
+  created new head
+  $ hg debugobsolete 8 7
+  $ hg -R ../other-new pull .
+  pulling from .
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 1 changes to 1 files (+1 heads)
+  (run 'hg heads .' to see heads, 'hg merge' to merge)
+
+  $ qlog -R ../other-new
+  8
+  - 159dfc9fa5d3
+  3
+  - 725c380fe99b
+  2
+  - 0d3f46688ccc
+  1
+  - 7c3bad9141dc
+  0
+  - 1f0dee641bb7
+  $ hg -R ../other-new rollback
+  repository tip rolled back to revision 7 (undo pull)
+  working directory now based on revision -1
+  $ qlog -R ../other-new
+  7
+  - 909a0fb57e5d
+  3
+  - 725c380fe99b
+  2
+  - 0d3f46688ccc
+  1
+  - 7c3bad9141dc
+  0
+  - 1f0dee641bb7
+