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
|
2008-12-06 22:07:44 +03:00
|
|
|
cat "$TESTDIR/svn/branches.svndump" | svnadmin load svn-repo > /dev/null
|
2008-01-18 01:46:56 +03:00
|
|
|
|
|
|
|
echo % convert trunk and branches
|
2009-05-13 23:03:31 +04:00
|
|
|
cat >branchmap <<EOF
|
|
|
|
old3 newbranch
|
|
|
|
EOF
|
2009-06-09 23:50:42 +04:00
|
|
|
hg convert --branchmap=branchmap --datesort -r 10 svn-repo A-hg
|
2008-01-18 01:46:56 +03:00
|
|
|
|
|
|
|
echo % convert again
|
2009-06-09 23:50:42 +04:00
|
|
|
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 ..
|