tests/test-subrepo
branchstable
changeset 11069 12f04d18143e
parent 10775 c52057614c72
child 11078 37d1b20168d1
--- a/tests/test-subrepo	Fri Apr 30 19:49:35 2010 -0300
+++ b/tests/test-subrepo	Fri Apr 30 19:50:37 2010 -0300
@@ -207,4 +207,24 @@
     | "$TESTDIR/filtertmp.py"
 rm -rf mercurial mercurial2
 
+echo % issue 1977
+hg init repo
+hg init repo/s
+echo a > repo/s/a
+hg -R repo/s ci -Am0
+echo s = s > repo/.hgsub
+hg -R repo ci -Am1
+hg clone repo repo2
+hg -q -R repo2 pull -u
+echo 1 > repo2/s/a
+hg -R repo2/s ci -m2
+hg -q -R repo2/s push
+hg -R repo2/s up -C 0
+echo 2 > repo2/s/a
+hg -R repo2/s ci -m3
+hg -R repo2 ci -m3
+hg -q -R repo2 push
+hg -R repo update
+rm -rf repo2 repo
+
 exit 0