Show More
@@ -91,7 +91,7 b' testfilters = [' | |||
|
91 | 91 | uprefix = r"^ \$ " |
|
92 | 92 | utestpats = [ |
|
93 | 93 | [ |
|
94 |
(r'^(\S.*|| |
|
|
94 | (r'^(\S.*|| [$>] .*)[ \t]\n', "trailing whitespace on non-output"), | |
|
95 | 95 | (uprefix + r'.*\|\s*sed[^|>\n]*\n', |
|
96 | 96 | "use regex test output patterns instead of sed"), |
|
97 | 97 | (uprefix + r'(true|exit 0)', "explicit zero exit unnecessary"), |
@@ -279,10 +279,10 b' Test annotate with whitespace options' | |||
|
279 | 279 | > EOF |
|
280 | 280 | $ hg ci -Am "adda" |
|
281 | 281 | adding a |
|
282 |
$ |
|
|
282 | $ sed 's/EOL$//g' > a <<EOF | |
|
283 | 283 | > a a |
|
284 | 284 | > |
|
285 | > | |
|
285 | > EOL | |
|
286 | 286 | > b b |
|
287 | 287 | > EOF |
|
288 | 288 | $ hg ci -m "changea" |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | |
|
4 | 4 | $ cat >> $HGRCPATH <<EOF |
|
5 | 5 | > [extensions] |
|
6 |
> convert = |
|
|
6 | > convert = | |
|
7 | 7 | > graphlog = |
|
8 | 8 | > EOF |
|
9 | 9 | |
@@ -14,7 +14,7 b' Convert trunk and branches' | |||
|
14 | 14 | |
|
15 | 15 | $ cat > branchmap <<EOF |
|
16 | 16 | > old3 newbranch |
|
17 |
> |
|
|
17 | > | |
|
18 | 18 | > |
|
19 | 19 | > EOF |
|
20 | 20 | $ hg convert --branchmap=branchmap --datesort -r 10 svn-repo A-hg |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | |
|
4 | 4 | $ cat >> $HGRCPATH <<EOF |
|
5 | 5 | > [extensions] |
|
6 |
> convert = |
|
|
6 | > convert = | |
|
7 | 7 | > graphlog = |
|
8 | 8 | > EOF |
|
9 | 9 |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | |
|
4 | 4 | $ cat >> $HGRCPATH <<EOF |
|
5 | 5 | > [extensions] |
|
6 |
> convert = |
|
|
6 | > convert = | |
|
7 | 7 | > graphlog = |
|
8 | 8 | > EOF |
|
9 | 9 | |
@@ -155,7 +155,7 b" Test convert progress bar'" | |||
|
155 | 155 | |
|
156 | 156 | $ cat >> $HGRCPATH <<EOF |
|
157 | 157 | > [extensions] |
|
158 |
> progress = |
|
|
158 | > progress = | |
|
159 | 159 | > [progress] |
|
160 | 160 | > assume-tty = 1 |
|
161 | 161 | > delay = 0 |
@@ -16,7 +16,7 b'' | |||
|
16 | 16 | |
|
17 | 17 | $ cat >> $HGRCPATH <<EOF |
|
18 | 18 | > [extensions] |
|
19 |
> convert = |
|
|
19 | > convert = | |
|
20 | 20 | > graphlog = |
|
21 | 21 | > EOF |
|
22 | 22 |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | |
|
4 | 4 | $ cat >> $HGRCPATH <<EOF |
|
5 | 5 | > [extensions] |
|
6 |
> convert = |
|
|
6 | > convert = | |
|
7 | 7 | > graphlog = |
|
8 | 8 | > [convert] |
|
9 | 9 | > svn.trunk = mytrunk |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | |
|
4 | 4 | $ cat >> $HGRCPATH <<EOF |
|
5 | 5 | > [extensions] |
|
6 |
> convert = |
|
|
6 | > convert = | |
|
7 | 7 | > graphlog = |
|
8 | 8 | > EOF |
|
9 | 9 | $ convert() |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | |
|
4 | 4 | $ cat >> $HGRCPATH <<EOF |
|
5 | 5 | > [extensions] |
|
6 |
> convert = |
|
|
6 | > convert = | |
|
7 | 7 | > graphlog = |
|
8 | 8 | > EOF |
|
9 | 9 |
@@ -83,7 +83,7 b' o (0) root' | |||
|
83 | 83 | |
|
84 | 84 | $ cat > printrevset.py <<EOF |
|
85 | 85 | > from mercurial import extensions, revset, commands, cmdutil |
|
86 |
> |
|
|
86 | > | |
|
87 | 87 | > def uisetup(ui): |
|
88 | 88 | > def printrevset(orig, ui, repo, *pats, **opts): |
|
89 | 89 | > if opts.get('print_revset'): |
@@ -322,12 +322,12 b' Multiple binary files:' | |||
|
322 | 322 | |
|
323 | 323 | Filenames with spaces: |
|
324 | 324 | |
|
325 |
$ hg import -d "1000000 0" -m spaces - |
|
|
325 | $ sed 's,EOL$,,g' <<EOF | hg import -d "1000000 0" -m spaces - | |
|
326 | 326 | > diff --git a/foo bar b/foo bar |
|
327 | 327 | > new file mode 100644 |
|
328 | 328 | > index 0000000..257cc56 |
|
329 | 329 | > --- /dev/null |
|
330 | > +++ b/foo bar | |
|
330 | > +++ b/foo bar EOL | |
|
331 | 331 | > @@ -0,0 +1 @@ |
|
332 | 332 | > +foo |
|
333 | 333 | > EOF |
@@ -128,7 +128,7 b'' | |||
|
128 | 128 | > catlogd 6 |
|
129 | 129 | > |
|
130 | 130 | > drop 6 |
|
131 |
> |
|
|
131 | > | |
|
132 | 132 | > |
|
133 | 133 | > echo ==== qnew -u |
|
134 | 134 | > hg qnew -u jane 6.patch |
@@ -169,7 +169,7 b' try to import --push' | |||
|
169 | 169 | |
|
170 | 170 | $ cat > appendfoo.diff <<EOF |
|
171 | 171 | > append foo |
|
172 |
> |
|
|
172 | > | |
|
173 | 173 | > diff -r 07f494440405 -r 261500830e46 baz |
|
174 | 174 | > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
175 | 175 | > +++ b/baz Thu Jan 01 00:00:00 1970 +0000 |
@@ -179,7 +179,7 b' try to import --push' | |||
|
179 | 179 | |
|
180 | 180 | $ cat > appendbar.diff <<EOF |
|
181 | 181 | > append bar |
|
182 |
> |
|
|
182 | > | |
|
183 | 183 | > diff -r 07f494440405 -r 261500830e46 baz |
|
184 | 184 | > --- a/baz Thu Jan 01 00:00:00 1970 +0000 |
|
185 | 185 | > +++ b/baz Thu Jan 01 00:00:00 1970 +0000 |
@@ -61,7 +61,7 b' Test helper functions:' | |||
|
61 | 61 | > hg up $opt $targetrev |
|
62 | 62 | > hg parent --template 'parent={rev}\n' |
|
63 | 63 | > hg stat -S |
|
64 |
> } |
|
|
64 | > } | |
|
65 | 65 | |
|
66 | 66 | $ norevtest () { |
|
67 | 67 | > msg=$1 |
@@ -74,7 +74,7 b' Test helper functions:' | |||
|
74 | 74 | > hg up $opt |
|
75 | 75 | > hg parent --template 'parent={rev}\n' |
|
76 | 76 | > hg stat -S |
|
77 |
> } |
|
|
77 | > } | |
|
78 | 78 | |
|
79 | 79 | Test cases are documented in a table in the update function of merge.py. |
|
80 | 80 | Cases are run as shown in that table, row by row. |
General Comments 0
You need to be logged in to leave comments.
Login now