Mercurial > public > mercurial-scm > hg
diff tests/test-convert-svn-startrev @ 8765:9c75f16f577c
test-convert-svn-*: no longer need the url building code
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 09 Jun 2009 21:50:42 +0200 |
parents | 5b7da468531b |
children | bb5ea66789e3 |
line wrap: on
line diff
--- a/tests/test-convert-svn-startrev Sat Jun 06 00:08:37 2009 +0200 +++ b/tests/test-convert-svn-startrev Tue Jun 09 21:50:42 2009 +0200 @@ -14,15 +14,6 @@ svnadmin create svn-repo cat "$TESTDIR/svn/startrev.svndump" | svnadmin load svn-repo > /dev/null -svnpath=`pwd | fix_path` -# SVN wants all paths to start with a slash. Unfortunately, -# Windows ones don't. Handle that. -expr $svnpath : "\/" > /dev/null -if [ $? -ne 0 ]; then - svnpath='/'$svnpath -fi -svnurl=file://$svnpath/svn-repo - convert() { startrev=$1 @@ -31,7 +22,7 @@ --config convert.svn.trunk=branches/branch1 \ --config convert.svn.branches=" " \ --config convert.svn.tags= \ - --datesort $svnurl $repopath + --datesort svn-repo $repopath hg -R $repopath glog --template '{rev} {desc|firstline} files: {files}\n' echo }