sapling/tests/test-convert-svn-branches

35 lines
740 B
Plaintext
Raw Normal View History

2008-01-18 01:46:56 +03:00
#!/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
cat "$TESTDIR/svn/branches.svndump" | svnadmin load svn-repo > /dev/null
2008-01-18 01:46:56 +03:00
echo % convert trunk and branches
cat >branchmap <<EOF
old3 newbranch
EOF
hg convert --branchmap=branchmap --datesort -r 10 svn-repo A-hg
2008-01-18 01:46:56 +03:00
echo % convert again
hg convert --branchmap=branchmap --datesort svn-repo A-hg
2008-01-18 01:46:56 +03:00
cd A-hg
2009-05-20 01:02:17 +04:00
hg glog --template 'branch={branches} {rev} {desc|firstline} files: {files}\n'
2008-01-18 01:46:56 +03:00
hg branches | sed 's/:.*/:/'
hg tags -q
cd ..
echo '% test hg failing to call itself'
HG=foobar hg convert svn-repo B-hg 2>&1 | grep -v foobar