test-subrepo-svn: avoid pushd/popd
authorPatrick Mezard <pmezard@gmail.com>
Sat, 02 Jan 2010 15:48:05 +0100
changeset 10196 20d849251fe6
parent 10195 1139fcfeaeda
child 10197 29e3c4a7699b
test-subrepo-svn: avoid pushd/popd
tests/test-subrepo-svn
--- a/tests/test-subrepo-svn	Fri Jan 01 18:10:10 2010 -0600
+++ b/tests/test-subrepo-svn	Sat Jan 02 15:48:05 2010 +0100
@@ -21,8 +21,6 @@
 cd ..
 
 echo % create hg repo
-
-rm -rf sub
 mkdir sub
 cd sub
 hg init t
@@ -54,11 +52,11 @@
 
 echo
 echo % add a commit from svn
-pushd "$WCROOT" > /dev/null
+cd "$WCROOT"
 svn up
 echo xyz >> alpha
 svn ci -m 'amend a from svn'
-popd > /dev/null
+cd ../sub/t
 echo % this commit from hg will fail
 echo zzz >> s/alpha
 hg ci -m 'amend alpha from hg'