test-convert-svn-branches
29 lines
| 701 B
| text/plain
|
TextLexer
/ tests / test-convert-svn-branches
Patrick Mezard
|
r5874 | #!/bin/sh | ||
"$TESTDIR/hghave" svn svn-bindings || exit 80 | ||||
echo "[extensions]" >> $HGRCPATH | ||||
echo "convert = " >> $HGRCPATH | ||||
Martin Geisler
|
r10119 | echo "graphlog =" >> $HGRCPATH | ||
Patrick Mezard
|
r5874 | |||
svnadmin create svn-repo | ||||
Patrick Mezard
|
r7475 | cat "$TESTDIR/svn/branches.svndump" | svnadmin load svn-repo > /dev/null | ||
Patrick Mezard
|
r5874 | |||
echo % convert trunk and branches | ||||
Michael J. Pedersen
|
r8377 | cat >branchmap <<EOF | ||
old3 newbranch | ||||
EOF | ||||
Patrick Mezard
|
r8765 | hg convert --branchmap=branchmap --datesort -r 10 svn-repo A-hg | ||
Patrick Mezard
|
r5874 | |||
echo % convert again | ||||
Patrick Mezard
|
r8765 | hg convert --branchmap=branchmap --datesort svn-repo A-hg | ||
Patrick Mezard
|
r5874 | |||
cd A-hg | ||||
Martin Geisler
|
r8523 | hg glog --template 'branch={branches} {rev} {desc|firstline} files: {files}\n' | ||
Patrick Mezard
|
r5874 | hg branches | sed 's/:.*/:/' | ||
hg tags -q | ||||
cd .. | ||||
Patrick Mezard
|
r9587 | |||
echo '% test hg failing to call itself' | ||||
Patrick Mezard
|
r10205 | HG=foobar hg convert svn-repo B-hg 2>&1 | grep itself | ||
Patrick Mezard
|
r9587 | |||