Mercurial > public > mercurial-scm > hg
diff tests/test-subrepo @ 11069:12f04d18143e stable
subrepo: add test for issue1977
author | Wagner Bruna <wbruna@softwareexpress.com.br> |
---|---|
date | Fri, 30 Apr 2010 19:50:37 -0300 |
parents | c52057614c72 |
children | 37d1b20168d1 |
line wrap: on
line diff
--- 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