changeset 10196:20d849251fe6

test-subrepo-svn: avoid pushd/popd
author Patrick Mezard <pmezard@gmail.com>
date Sat, 02 Jan 2010 15:48:05 +0100
parents 1139fcfeaeda
children 29e3c4a7699b
files tests/test-subrepo-svn
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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'