Show More
@@ -17,8 +17,8 b' cvscall()' | |||
|
17 | 17 | # -- just keep the part that matters |
|
18 | 18 | cvsci() |
|
19 | 19 | { |
|
20 | echo cvs -f ci "$@" | |
|
21 | cvs -f ci "$@" 2>&1 | egrep "^(new|initial) revision:" | |
|
20 | echo cvs -f ci -f "$@" | |
|
21 | cvs -f ci -f "$@" 2>&1 | egrep "^(new|initial) revision:" | |
|
22 | 22 | } |
|
23 | 23 | |
|
24 | 24 | hgcat() |
@@ -50,7 +50,7 b' cvscall -Q add foo' | |||
|
50 | 50 | cd foo |
|
51 | 51 | echo foo > foo.txt |
|
52 | 52 | cvscall -Q add foo.txt |
|
53 | cvsci -m "foo.txt" | |
|
53 | cvsci -m "add foo.txt" foo.txt | |
|
54 | 54 | |
|
55 | 55 | cd ../.. |
|
56 | 56 | rm -rf cvsworktmp |
@@ -63,33 +63,38 b' cd cvswork' | |||
|
63 | 63 | cvscall -q rtag -b -R MYBRANCH1 foo |
|
64 | 64 | cvscall -Q update -P -r MYBRANCH1 |
|
65 | 65 | echo bar > foo.txt |
|
66 | cvsci -m "bar" | |
|
66 | cvsci -m "bar" foo.txt | |
|
67 | 67 | echo baz > foo.txt |
|
68 | cvsci -m "baz" | |
|
68 | cvsci -m "baz" foo.txt | |
|
69 | 69 | |
|
70 | 70 | echo "% create MYBRANCH1_2 and modify foo.txt some more" |
|
71 | 71 | cvscall -q rtag -b -R -r MYBRANCH1 MYBRANCH1_2 foo |
|
72 | 72 | cvscall -Q update -P -r MYBRANCH1_2 |
|
73 | 73 | |
|
74 | 74 | echo bazzie > foo.txt |
|
75 | cvsci -m "bazzie" | |
|
75 | cvsci -m "bazzie" foo.txt | |
|
76 | 76 | |
|
77 | 77 | echo "% create MYBRANCH1_1 and modify foo.txt yet again" |
|
78 | 78 | cvscall -q rtag -b -R MYBRANCH1_1 foo |
|
79 | 79 | cvscall -Q update -P -r MYBRANCH1_1 |
|
80 | 80 | |
|
81 | 81 | echo quux > foo.txt |
|
82 | cvsci -m "quux" | |
|
82 | cvsci -m "quux" foo.txt | |
|
83 | 83 | |
|
84 | 84 | echo "% merge MYBRANCH1 to MYBRANCH1_1" |
|
85 | 85 | filterpath cvscall -Q update -P -jMYBRANCH1 |
|
86 | # carefully placed sleep to dodge cvs bug (optimization?) where it | |
|
87 | # sometimes ignores a "commit" command if it comes too fast (the -f | |
|
88 | # option in cvsci seems to work for all the other commits in this | |
|
89 | # script) | |
|
90 | sleep 1 | |
|
86 | 91 | echo xyzzy > foo.txt |
|
87 | cvsci -m "merge1" | |
|
92 | cvsci -m "merge1+clobber" foo.txt | |
|
88 | 93 | |
|
89 | 94 | echo "% return to trunk and merge MYBRANCH1_2" |
|
90 | 95 | cvscall -Q update -P -A |
|
91 | 96 | filterpath cvscall -Q update -P -jMYBRANCH1_2 |
|
92 | cvsci -m "merge2" | |
|
97 | cvsci -m "merge2" foo.txt | |
|
93 | 98 | |
|
94 | 99 | REALCVS=`which cvs` |
|
95 | 100 | 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 |
@@ -4,25 +4,25 b' cvs -f -Q -d *REPO* init' | |||
|
4 | 4 | cvs -f -Q checkout -d cvsworktmp . |
|
5 | 5 | cvs -f -Q add foo |
|
6 | 6 | cvs -f -Q add foo.txt |
|
7 | cvs -f ci -m foo.txt | |
|
7 | cvs -f ci -f -m add foo.txt foo.txt | |
|
8 | 8 | initial revision: 1.1 |
|
9 | 9 | % checkout #2: create MYBRANCH1 and modify foo.txt on it |
|
10 | 10 | cvs -f -Q checkout -d cvswork foo |
|
11 | 11 | cvs -f -q rtag -b -R MYBRANCH1 foo |
|
12 | 12 | cvs -f -Q update -P -r MYBRANCH1 |
|
13 | cvs -f ci -m bar | |
|
13 | cvs -f ci -f -m bar foo.txt | |
|
14 | 14 | new revision: 1.1.2.1; previous revision: 1.1 |
|
15 | cvs -f ci -m baz | |
|
15 | cvs -f ci -f -m baz foo.txt | |
|
16 | 16 | new revision: 1.1.2.2; previous revision: 1.1.2.1 |
|
17 | 17 | % create MYBRANCH1_2 and modify foo.txt some more |
|
18 | 18 | cvs -f -q rtag -b -R -r MYBRANCH1 MYBRANCH1_2 foo |
|
19 | 19 | cvs -f -Q update -P -r MYBRANCH1_2 |
|
20 | cvs -f ci -m bazzie | |
|
20 | cvs -f ci -f -m bazzie foo.txt | |
|
21 | 21 | new revision: 1.1.2.2.2.1; previous revision: 1.1.2.2 |
|
22 | 22 | % create MYBRANCH1_1 and modify foo.txt yet again |
|
23 | 23 | cvs -f -q rtag -b -R MYBRANCH1_1 foo |
|
24 | 24 | cvs -f -Q update -P -r MYBRANCH1_1 |
|
25 | cvs -f ci -m quux | |
|
25 | cvs -f ci -f -m quux foo.txt | |
|
26 | 26 | new revision: 1.1.4.1; previous revision: 1.1 |
|
27 | 27 | % merge MYBRANCH1 to MYBRANCH1_1 |
|
28 | 28 | rcsmerge: warning: conflicts during merge |
@@ -31,7 +31,7 b' RCS file: *REPO*/foo/foo.txt,v' | |||
|
31 | 31 | retrieving revision 1.1 |
|
32 | 32 | retrieving revision 1.1.2.2 |
|
33 | 33 | Merging differences between 1.1 and 1.1.2.2 into foo.txt |
|
34 | cvs -f ci -m merge1 | |
|
34 | cvs -f ci -f -m merge1+clobber foo.txt | |
|
35 | 35 | new revision: 1.1.4.2; previous revision: 1.1.4.1 |
|
36 | 36 | % return to trunk and merge MYBRANCH1_2 |
|
37 | 37 | cvs -f -Q update -P -A |
@@ -40,7 +40,7 b' RCS file: *REPO*/foo/foo.txt,v' | |||
|
40 | 40 | retrieving revision 1.1 |
|
41 | 41 | retrieving revision 1.1.2.2.2.1 |
|
42 | 42 | Merging differences between 1.1 and 1.1.2.2.2.1 into foo.txt |
|
43 | cvs -f ci -m merge2 | |
|
43 | cvs -f ci -f -m merge2 foo.txt | |
|
44 | 44 | new revision: 1.2; previous revision: 1.1 |
|
45 | 45 | collecting CVS rlog |
|
46 | 46 | 7 log entries |
General Comments 0
You need to be logged in to leave comments.
Login now