equal
deleted
inserted
replaced
12 echo "hgext.graphlog =" >> $HGRCPATH |
12 echo "hgext.graphlog =" >> $HGRCPATH |
13 |
13 |
14 svnadmin create svn-repo |
14 svnadmin create svn-repo |
15 cat "$TESTDIR/svn/branches.svndump" | svnadmin load svn-repo > /dev/null |
15 cat "$TESTDIR/svn/branches.svndump" | svnadmin load svn-repo > /dev/null |
16 |
16 |
17 svnpath=`pwd | fix_path` |
|
18 # SVN wants all paths to start with a slash. Unfortunately, |
|
19 # Windows ones don't. Handle that. |
|
20 expr $svnpath : "\/" > /dev/null |
|
21 if [ $? -ne 0 ]; then |
|
22 svnpath='/'$svnpath |
|
23 fi |
|
24 svnurl=file://$svnpath/svn-repo |
|
25 |
|
26 echo % convert trunk and branches |
17 echo % convert trunk and branches |
27 cat >branchmap <<EOF |
18 cat >branchmap <<EOF |
28 old3 newbranch |
19 old3 newbranch |
29 EOF |
20 EOF |
30 hg convert --branchmap=branchmap --datesort -r 10 $svnurl A-hg |
21 hg convert --branchmap=branchmap --datesort -r 10 svn-repo A-hg |
31 |
22 |
32 echo % convert again |
23 echo % convert again |
33 hg convert --branchmap=branchmap --datesort $svnurl A-hg |
24 hg convert --branchmap=branchmap --datesort svn-repo A-hg |
34 |
25 |
35 cd A-hg |
26 cd A-hg |
36 hg glog --template 'branch={branches} {rev} {desc|firstline} files: {files}\n' |
27 hg glog --template 'branch={branches} {rev} {desc|firstline} files: {files}\n' |
37 hg branches | sed 's/:.*/:/' |
28 hg branches | sed 's/:.*/:/' |
38 hg tags -q |
29 hg tags -q |