##// END OF EJS Templates
Rename CVSNT "mergepoints" test and make it executable....
Greg Ward -
r8818:727f7aae default
parent child Browse files
Show More
@@ -1,80 +1,80 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 "$TESTDIR/hghave" cvs || exit 80
3 "$TESTDIR/hghave" cvs || exit 80
4
4
5 cvscall()
5 cvscall()
6 {
6 {
7 cvs -f "$@"
7 cvs -f "$@"
8 }
8 }
9
9
10 hgcat()
10 hgcat()
11 {
11 {
12 hg --cwd src-hg cat -r tip "$1"
12 hg --cwd src-hg cat -r tip "$1"
13 }
13 }
14
14
15 echo "[extensions]" >> $HGRCPATH
15 echo "[extensions]" >> $HGRCPATH
16 echo "convert = " >> $HGRCPATH
16 echo "convert = " >> $HGRCPATH
17 echo "graphlog = " >> $HGRCPATH
17 echo "graphlog = " >> $HGRCPATH
18 echo "[convert]" >> $HGRCPATH
18 echo "[convert]" >> $HGRCPATH
19 echo "cvsps=builtin" >> $HGRCPATH
19 echo "cvsps=builtin" >> $HGRCPATH
20
20
21 echo % create cvs repository
21 echo % create cvs repository
22 mkdir cvsmaster
22 mkdir cvsmaster
23 cd cvsmaster
23 cd cvsmaster
24 CVSROOT=`pwd`
24 CVSROOT=`pwd`
25 export CVSROOT
25 export CVSROOT
26 CVS_OPTIONS=-f
26 CVS_OPTIONS=-f
27 export CVS_OPTIONS
27 export CVS_OPTIONS
28 cd ..
28 cd ..
29
29
30 cvscall -q -d "$CVSROOT" init
30 cvscall -q -d "$CVSROOT" init
31
31
32 cvscall -q checkout -d cvsworktmp .
32 cvscall -q checkout -d cvsworktmp .
33 cd cvsworktmp
33 cd cvsworktmp
34 mkdir foo
34 mkdir foo
35 cvscall -q add foo | sed -e 's/Directory .* added to the repository//g'
35 cvscall -q add foo | sed -e 's/Directory .* added to the repository//g'
36 cd foo
36 cd foo
37 echo foo > foo.txt
37 echo foo > foo.txt
38 cvscall -q add foo.txt
38 cvscall -q add foo.txt
39 cvscall -q ci -m "foo.txt" | sed 's/.*,v.*/checking in/g'
39 cvscall -q ci -m "foo.txt" | sed 's/.*,v.*/checking in/g'
40
40
41 cd ../..
41 cd ../..
42 rm -rf cvsworktmp
42 rm -rf cvsworktmp
43
43
44 cvscall -q checkout -d cvswork foo
44 cvscall -q checkout -d cvswork foo
45
45
46 cd cvswork
46 cd cvswork
47
47
48 cvscall -q rtag -b -R MYBRANCH1 foo
48 cvscall -q rtag -b -R MYBRANCH1 foo
49 cvscall -q up -P -r MYBRANCH1
49 cvscall -q up -P -r MYBRANCH1
50 echo bar > foo.txt
50 echo bar > foo.txt
51 cvscall -q ci -m "bar" | sed 's/.*,v.*/checking in/g'
51 cvscall -q ci -m "bar" | sed 's/.*,v.*/checking in/g'
52 echo baz > foo.txt
52 echo baz > foo.txt
53 cvscall -q ci -m "baz" | sed 's/.*,v.*/checking in/g'
53 cvscall -q ci -m "baz" | sed 's/.*,v.*/checking in/g'
54
54
55 cvscall -q rtag -b -R -r MYBRANCH1 MYBRANCH1_2 foo
55 cvscall -q rtag -b -R -r MYBRANCH1 MYBRANCH1_2 foo
56 cvscall -q up -P -r MYBRANCH1_2
56 cvscall -q up -P -r MYBRANCH1_2
57
57
58 echo bazzie > foo.txt
58 echo bazzie > foo.txt
59 cvscall -q ci -m "bazzie" | sed 's/.*,v.*/checking in/g'
59 cvscall -q ci -m "bazzie" | sed 's/.*,v.*/checking in/g'
60
60
61 cvscall -q rtag -b -R MYBRANCH1_1 foo
61 cvscall -q rtag -b -R MYBRANCH1_1 foo
62 cvscall -q up -P -r MYBRANCH1_1
62 cvscall -q up -P -r MYBRANCH1_1
63
63
64 echo quux > foo.txt
64 echo quux > foo.txt
65 cvscall -q ci -m "quux" | sed 's/.*,v.*/checking in/g'
65 cvscall -q ci -m "quux" | sed 's/.*,v.*/checking in/g'
66 cvscall -q up -P -jMYBRANCH1 | sed 's/RCS file: .*,v/merging MYBRANCH1/g'
66 cvscall -q up -P -jMYBRANCH1 | sed 's/RCS file: .*,v/merging MYBRANCH1/g'
67 echo xyzzy > foo.txt
67 echo xyzzy > foo.txt
68 cvscall -q ci -m "merge" | sed 's/.*,v.*/checking in/g'
68 cvscall -q ci -m "merge" | sed 's/.*,v.*/checking in/g'
69
69
70 cvscall -q up -P -A
70 cvscall -q up -P -A
71
71
72 cvscall -q up -P -jMYBRANCH1_2 | sed 's/RCS file: .*,v/merging MYBRANCH1_2/g'
72 cvscall -q up -P -jMYBRANCH1_2 | sed 's/RCS file: .*,v/merging MYBRANCH1_2/g'
73 cvscall -q ci -m "merge" | sed 's/.*,v.*/checking in/g'
73 cvscall -q ci -m "merge" | sed 's/.*,v.*/checking in/g'
74
74
75 REALCVS=`which cvs`
75 REALCVS=`which cvs`
76 echo "for x in \$*; do if [ \"\$x\" = \"rlog\" ]; then echo \"RCS file: $CVSROOT/foo/foo.txt,v\"; cat $TESTDIR/test-convert-cvs-builtincvsps-cvsnt-mergepoints.rlog; exit 0; fi; done; $REALCVS \$*" > cvs
76 echo "for x in \$*; do if [ \"\$x\" = \"rlog\" ]; then echo \"RCS file: $CVSROOT/foo/foo.txt,v\"; cat $TESTDIR/test-convert-cvsnt-mergepoints.rlog; exit 0; fi; done; $REALCVS \$*" > cvs
77 chmod +x cvs
77 chmod +x cvs
78 PATH=.:${PATH} hg debugcvsps --parents foo | sed -e 's/Author:.*/Author:/' -e 's/Date:.*/Date:/'
78 PATH=.:${PATH} hg debugcvsps --parents foo | sed -e 's/Author:.*/Author:/' -e 's/Date:.*/Date:/'
79
79
80 cd ..
80 cd ..
@@ -1,138 +1,140 b''
1 % create cvs repository
1 % create cvs repository
2 U cvsworktmp/CVSROOT/checkoutlist
2 U cvsworktmp/CVSROOT/checkoutlist
3 U cvsworktmp/CVSROOT/commitinfo
3 U cvsworktmp/CVSROOT/commitinfo
4 U cvsworktmp/CVSROOT/config
4 U cvsworktmp/CVSROOT/config
5 U cvsworktmp/CVSROOT/cvswrappers
5 U cvsworktmp/CVSROOT/cvswrappers
6 U cvsworktmp/CVSROOT/loginfo
6 U cvsworktmp/CVSROOT/loginfo
7 U cvsworktmp/CVSROOT/modules
7 U cvsworktmp/CVSROOT/modules
8 U cvsworktmp/CVSROOT/notify
8 U cvsworktmp/CVSROOT/notify
9 U cvsworktmp/CVSROOT/postadmin
9 U cvsworktmp/CVSROOT/postadmin
10 U cvsworktmp/CVSROOT/postproxy
10 U cvsworktmp/CVSROOT/postproxy
11 U cvsworktmp/CVSROOT/posttag
11 U cvsworktmp/CVSROOT/posttag
12 U cvsworktmp/CVSROOT/postwatch
12 U cvsworktmp/CVSROOT/postwatch
13 U cvsworktmp/CVSROOT/preproxy
13 U cvsworktmp/CVSROOT/preproxy
14 U cvsworktmp/CVSROOT/rcsinfo
14 U cvsworktmp/CVSROOT/rcsinfo
15 U cvsworktmp/CVSROOT/taginfo
15 U cvsworktmp/CVSROOT/taginfo
16 U cvsworktmp/CVSROOT/verifymsg
16 U cvsworktmp/CVSROOT/verifymsg
17
17
18 cvs add: use `cvs commit' to add this file permanently
18 cvs add: use `cvs commit' to add this file permanently
19 checking in
19 checking in
20 initial revision: 1.1
20 initial revision: 1.1
21 U cvswork/foo.txt
21 U cvswork/foo.txt
22 checking in
22 checking in
23 new revision: 1.1.2.1; previous revision: 1.1
23 new revision: 1.1.2.1; previous revision: 1.1
24 checking in
24 checking in
25 new revision: 1.1.2.2; previous revision: 1.1.2.1
25 new revision: 1.1.2.2; previous revision: 1.1.2.1
26 checking in
26 checking in
27 new revision: 1.1.2.2.2.1; previous revision: 1.1.2.2
27 new revision: 1.1.2.2.2.1; previous revision: 1.1.2.2
28 U foo.txt
28 U foo.txt
29 checking in
29 checking in
30 new revision: 1.1.4.1; previous revision: 1.1
30 new revision: 1.1.4.1; previous revision: 1.1
31 rcsmerge: warning: conflicts during merge
31 rcsmerge: warning: conflicts during merge
32 merging MYBRANCH1
32 merging MYBRANCH1
33 retrieving revision 1.1
33 retrieving revision 1.1
34 retrieving revision 1.1.2.2
34 retrieving revision 1.1.2.2
35 Merging differences between 1.1 and 1.1.2.2 into foo.txt
35 Merging differences between 1.1 and 1.1.2.2 into foo.txt
36 checking in
36 checking in
37 new revision: 1.1.4.2; previous revision: 1.1.4.1
37 new revision: 1.1.4.2; previous revision: 1.1.4.1
38 U foo.txt
38 U foo.txt
39 merging MYBRANCH1_2
39 merging MYBRANCH1_2
40 retrieving revision 1.1
40 retrieving revision 1.1
41 retrieving revision 1.1.2.2.2.1
41 retrieving revision 1.1.2.2.2.1
42 Merging differences between 1.1 and 1.1.2.2.2.1 into foo.txt
42 Merging differences between 1.1 and 1.1.2.2.2.1 into foo.txt
43 checking in
43 checking in
44 new revision: 1.2; previous revision: 1.1
44 new revision: 1.2; previous revision: 1.1
45 collecting CVS rlog
45 collecting CVS rlog
46 7 log entries
46 7 log entries
47 creating changesets
47 creating changesets
48 7 changeset entries
48 7 changeset entries
49 ---------------------
49 ---------------------
50 PatchSet 1
50 PatchSet 1
51 Date:
51 Date:
52 Author:
52 Author:
53 Branch: HEAD
53 Branch: HEAD
54 Tag: (none)
54 Tag: (none)
55 Branchpoints: MYBRANCH1_1, MYBRANCH1
55 Log:
56 Log:
56 foo.txt
57 foo.txt
57
58
58 Members:
59 Members:
59 foo.txt:INITIAL->1.1
60 foo.txt:INITIAL->1.1
60
61
61 ---------------------
62 ---------------------
62 PatchSet 2
63 PatchSet 2
63 Date:
64 Date:
64 Author:
65 Author:
65 Branch: MYBRANCH1
66 Branch: MYBRANCH1
66 Tag: (none)
67 Tag: (none)
67 Parent: 1
68 Parent: 1
68 Log:
69 Log:
69 bar
70 bar
70
71
71 Members:
72 Members:
72 foo.txt:1.1->1.1.2.1
73 foo.txt:1.1->1.1.2.1
73
74
74 ---------------------
75 ---------------------
75 PatchSet 3
76 PatchSet 3
76 Date:
77 Date:
77 Author:
78 Author:
78 Branch: MYBRANCH1
79 Branch: MYBRANCH1
79 Tag: (none)
80 Tag: (none)
81 Branchpoints: MYBRANCH1_2
80 Parent: 2
82 Parent: 2
81 Log:
83 Log:
82 baz
84 baz
83
85
84 Members:
86 Members:
85 foo.txt:1.1.2.1->1.1.2.2
87 foo.txt:1.1.2.1->1.1.2.2
86
88
87 ---------------------
89 ---------------------
88 PatchSet 4
90 PatchSet 4
89 Date:
91 Date:
90 Author:
92 Author:
91 Branch: MYBRANCH1_1
93 Branch: MYBRANCH1_1
92 Tag: (none)
94 Tag: (none)
93 Parent: 1
95 Parent: 1
94 Log:
96 Log:
95 quux
97 quux
96
98
97 Members:
99 Members:
98 foo.txt:1.1->1.1.4.1
100 foo.txt:1.1->1.1.4.1
99
101
100 ---------------------
102 ---------------------
101 PatchSet 5
103 PatchSet 5
102 Date:
104 Date:
103 Author:
105 Author:
104 Branch: MYBRANCH1_2
106 Branch: MYBRANCH1_2
105 Tag: (none)
107 Tag: (none)
106 Parent: 3
108 Parent: 3
107 Log:
109 Log:
108 bazzie
110 bazzie
109
111
110 Members:
112 Members:
111 foo.txt:1.1.2.2->1.1.2.2.2.1
113 foo.txt:1.1.2.2->1.1.2.2.2.1
112
114
113 ---------------------
115 ---------------------
114 PatchSet 6
116 PatchSet 6
115 Date:
117 Date:
116 Author:
118 Author:
117 Branch: HEAD
119 Branch: HEAD
118 Tag: (none)
120 Tag: (none)
119 Parents: 1,5
121 Parents: 1,5
120 Log:
122 Log:
121 merge
123 merge
122
124
123 Members:
125 Members:
124 foo.txt:1.1->1.2
126 foo.txt:1.1->1.2
125
127
126 ---------------------
128 ---------------------
127 PatchSet 7
129 PatchSet 7
128 Date:
130 Date:
129 Author:
131 Author:
130 Branch: MYBRANCH1_1
132 Branch: MYBRANCH1_1
131 Tag: (none)
133 Tag: (none)
132 Parents: 4,3
134 Parents: 4,3
133 Log:
135 Log:
134 merge
136 merge
135
137
136 Members:
138 Members:
137 foo.txt:1.1.4.1->1.1.4.2
139 foo.txt:1.1.4.1->1.1.4.2
138
140
1 NO CONTENT: file renamed from tests/test-convert-cvs-builtincvsps-cvsnt-mergepoints.rlog to tests/test-convert-cvsnt-mergepoints.rlog
NO CONTENT: file renamed from tests/test-convert-cvs-builtincvsps-cvsnt-mergepoints.rlog to tests/test-convert-cvsnt-mergepoints.rlog
General Comments 0
You need to be logged in to leave comments. Login now