##// END OF EJS Templates
Minor svn conversion tests cleanup
Patrick Mezard -
r10200:3373ecdd default
parent child Browse files
Show More
@@ -1,34 +1,29 b''
1 1 #!/bin/sh
2 2
3 3 "$TESTDIR/hghave" svn svn-bindings || exit 80
4 4
5 fix_path()
6 {
7 tr '\\' /
8 }
9
10 5 echo "[extensions]" >> $HGRCPATH
11 6 echo "convert = " >> $HGRCPATH
12 7 echo "graphlog =" >> $HGRCPATH
13 8
14 9 svnadmin create svn-repo
15 10 cat "$TESTDIR/svn/branches.svndump" | svnadmin load svn-repo > /dev/null
16 11
17 12 echo % convert trunk and branches
18 13 cat >branchmap <<EOF
19 14 old3 newbranch
20 15 EOF
21 16 hg convert --branchmap=branchmap --datesort -r 10 svn-repo A-hg
22 17
23 18 echo % convert again
24 19 hg convert --branchmap=branchmap --datesort svn-repo A-hg
25 20
26 21 cd A-hg
27 22 hg glog --template 'branch={branches} {rev} {desc|firstline} files: {files}\n'
28 23 hg branches | sed 's/:.*/:/'
29 24 hg tags -q
30 25 cd ..
31 26
32 27 echo '% test hg failing to call itself'
33 28 HG=foobar hg convert svn-repo B-hg 2>&1 | grep -v foobar
34 29
@@ -1,37 +1,32 b''
1 1 #!/bin/sh
2 2
3 3 "$TESTDIR/hghave" svn svn-bindings || exit 80
4 4
5 fix_path()
6 {
7 tr '\\' /
8 }
9
10 5 echo "[extensions]" >> $HGRCPATH
11 6 echo "convert = " >> $HGRCPATH
12 7 echo "graphlog =" >> $HGRCPATH
13 8
14 9 svnadmin create svn-repo
15 10 cat "$TESTDIR/svn/startrev.svndump" | svnadmin load svn-repo > /dev/null
16 11
17 12 convert()
18 13 {
19 14 startrev=$1
20 15 repopath=A-r$startrev-hg
21 16 hg convert --config convert.svn.startrev=$startrev \
22 17 --config convert.svn.trunk=branches/branch1 \
23 18 --config convert.svn.branches=" " \
24 19 --config convert.svn.tags= \
25 20 --datesort svn-repo $repopath
26 21 hg -R $repopath glog --template '{rev} {desc|firstline} files: {files}\n'
27 22 echo
28 23 }
29 24
30 25 echo % convert before branching point
31 26 convert 3
32 27 echo % convert before branching point
33 28 convert 4
34 29 echo % convert at branching point
35 30 convert 5
36 31 echo % convert last revision only
37 32 convert 6
@@ -1,28 +1,23 b''
1 1 #!/bin/sh
2 2
3 3 "$TESTDIR/hghave" svn svn-bindings || exit 80
4 4
5 fix_path()
6 {
7 tr '\\' /
8 }
9
10 5 echo "[extensions]" >> $HGRCPATH
11 6 echo "convert = " >> $HGRCPATH
12 7 echo "graphlog =" >> $HGRCPATH
13 8
14 9 svnadmin create svn-repo
15 10 cat "$TESTDIR/svn/tags.svndump" | svnadmin load svn-repo > /dev/null
16 11
17 12 echo % convert
18 13 hg convert --datesort svn-repo A-hg
19 14
20 15 cd A-hg
21 16 hg glog --template '{rev} {desc|firstline} tags: {tags}\n'
22 17 hg tags | sed 's/:.*/:/'
23 18 cd ..
24 19
25 20 echo % convert without tags
26 21 hg convert --datesort --config convert.svn.tags= svn-repo A-notags-hg
27 22 hg -R A-notags-hg tags -q
28 23
General Comments 0
You need to be logged in to leave comments. Login now