tests/test-import
changeset 4230 c93562fb12cc
parent 3988 9dcf9d45cab8
child 4779 a7915f79d4cc
--- a/tests/test-import	Fri Mar 16 00:22:57 2007 -0300
+++ b/tests/test-import	Fri Mar 16 00:22:58 2007 -0300
@@ -32,6 +32,17 @@
 hg --cwd b import -mpatch ../tip.patch
 rm -r b
 
+echo % hg -R repo import
+# put the clone in a subdir - having a directory named "a"
+# used to hide a bug.
+mkdir dir
+hg clone -r0 a dir/b
+hg --cwd a export tip > dir/tip.patch
+cd dir
+hg -R b import tip.patch
+cd ..
+rm -r dir
+
 echo % import from stdin
 hg clone -r0 a b
 hg --cwd a export tip | hg --cwd b import -