tests/test-convert-filemap.t
changeset 17175 f76e2196ee70
parent 17111 bddf1220d7a2
parent 17174 32b2e6d641e4
child 17797 e4da793998bf
child 17851 7aa7380691b8
--- a/tests/test-convert-filemap.t	Fri Jul 06 19:34:09 2012 +0200
+++ b/tests/test-convert-filemap.t	Sun Jul 15 14:48:50 2012 -0500
@@ -376,6 +376,39 @@
   o  0 "addb" files: b
   
 
+filemap rename undoing revision rename
+
+  $ hg init renameundo
+  $ cd renameundo
+  $ echo 1 > a
+  $ echo 1 > c
+  $ hg ci -qAm add
+  $ hg mv -q a b/a
+  $ hg mv -q c b/c
+  $ hg ci -qm rename
+  $ echo 2 > b/a
+  $ echo 2 > b/c
+  $ hg ci -qm modify
+  $ cd ..
+
+  $ echo "rename b ." > renameundo.fmap
+  $ hg convert --filemap renameundo.fmap renameundo renameundo2
+  initializing destination renameundo2 repository
+  scanning source...
+  sorting...
+  converting...
+  2 add
+  1 rename
+  filtering out empty revision
+  repository tip rolled back to revision 0 (undo commit)
+  0 modify
+  $ glog -R renameundo2
+  o  1 "modify" files: a c
+  |
+  o  0 "add" files: a c
+  
+
+
 test merge parents/empty merges pruning
 
   $ glog()