tests/test-subrepo
changeset 11078 37d1b20168d1
parent 10786 2f2ae64a2948
parent 11069 12f04d18143e
child 11086 c2601c216333
--- a/tests/test-subrepo	Sat May 01 15:14:22 2010 -0500
+++ b/tests/test-subrepo	Sat May 01 15:15:35 2010 -0500
@@ -208,4 +208,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