##// END OF EJS Templates
merge with stable
merge with stable

File last commit:

r10200:3373ecdd default
r12315:ca58f647 merge default
Show More
test-convert-svn-startrev
32 lines | 815 B | text/plain | TextLexer
/ tests / test-convert-svn-startrev
Patrick Mezard
convert: add shallow, single branch svn conversions via svn.startrev
r6173 #!/bin/sh
"$TESTDIR/hghave" svn svn-bindings || exit 80
echo "[extensions]" >> $HGRCPATH
echo "convert = " >> $HGRCPATH
Martin Geisler
tests: load with "ext =" instead of "hgext.ext ="
r10119 echo "graphlog =" >> $HGRCPATH
Patrick Mezard
convert: add shallow, single branch svn conversions via svn.startrev
r6173
svnadmin create svn-repo
Patrick Mezard
Rewrite svn tests using svndump...
r7475 cat "$TESTDIR/svn/startrev.svndump" | svnadmin load svn-repo > /dev/null
Patrick Mezard
convert: add shallow, single branch svn conversions via svn.startrev
r6173
convert()
{
startrev=$1
repopath=A-r$startrev-hg
hg convert --config convert.svn.startrev=$startrev \
--config convert.svn.trunk=branches/branch1 \
--config convert.svn.branches=" " \
--config convert.svn.tags= \
Patrick Mezard
test-convert-svn-*: no longer need the url building code
r8765 --datesort svn-repo $repopath
Martin Geisler
tests: replace #...# syntax with {...}
r8523 hg -R $repopath glog --template '{rev} {desc|firstline} files: {files}\n'
Patrick Mezard
convert: add shallow, single branch svn conversions via svn.startrev
r6173 echo
}
echo % convert before branching point
convert 3
echo % convert before branching point
convert 4
echo % convert at branching point
convert 5
echo % convert last revision only
convert 6