test-convert-svn-branches
34 lines
| 740 B
| text/plain
|
TextLexer
/ tests / test-convert-svn-branches
Patrick Mezard
|
r5874 | #!/bin/sh | ||
"$TESTDIR/hghave" svn svn-bindings || exit 80 | ||||
fix_path() | ||||
{ | ||||
tr '\\' / | ||||
} | ||||
echo "[extensions]" >> $HGRCPATH | ||||
echo "convert = " >> $HGRCPATH | ||||
echo "hgext.graphlog =" >> $HGRCPATH | ||||
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' | ||||
HG=foobar hg convert svn-repo B-hg 2>&1 | grep -v foobar | ||||