##// END OF EJS Templates
tests: cleanup of echo statements left over from test conversion
Mads Kiilerich -
r15243:1e945147 default
parent child Browse files
Show More
@@ -86,7 +86,6 b' final file versions in this repo:'
86 86 bc3eca3f47023a3e70ca0d8cc95a22a6827db19d 644 quux
87 87 $ hg debugrename copied
88 88 copied renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd
89 $ echo
90 89
91 90 $ cd ..
92 91 $ splitrepo()
@@ -198,8 +198,6 b' full conversion'
198 198 354ae8da6e890359ef49ade27b68bbc361f3ca88 644 baz
199 199 9277c9cc8dd4576fc01a17939b4351e5ada93466 644 foo
200 200 88dfeab657e8cf2cef3dec67b914f49791ae76b1 644 quux
201 $ echo
202
203 201
204 202 test binary conversion (issue 1359)
205 203
@@ -226,8 +224,6 b' convert binary file'
226 224 $ python -c 'print len(file("b", "rb").read())'
227 225 4096
228 226 $ cd ..
229 $ echo
230
231 227
232 228 test author vs committer
233 229
@@ -219,8 +219,9 b' Copy'
219 219 newlink
220 220
221 221 $ hg --cwd a rm b
222 $ echo % remove
223 % remove
222
223 Remove
224
224 225 $ hg --cwd a ci -d '4 0' -m 'remove a file'
225 226 $ hg --cwd a tip -q
226 227 4:07b2e34a5b17
@@ -94,7 +94,6 b' record'
94 94 a
95 95 c
96 96 \x1b[0;33mrecord this change to 'a'? [Ynsfdaq?]\x1b[0m (esc)
97 $ echo
98 97
99 98 $ echo "[extensions]" >> $HGRCPATH
100 99 $ echo "mq=" >> $HGRCPATH
@@ -123,5 +122,3 b' qrecord'
123 122 a
124 123 c
125 124 \x1b[0;33mrecord this change to 'a'? [Ynsfdaq?]\x1b[0m (esc)
126 $ echo
127
@@ -155,8 +155,6 b' test fetch with named branches'
155 155 $ echo b > nbase/b
156 156 $ hg -R nbase ci -Ad '3 0' -m b
157 157 adding b
158 $ echo
159
160 158
161 159 pull in change on foreign branch
162 160
@@ -185,8 +183,6 b' parent should be 2 (no automatic update)'
185 183 $ hg -R n2 parents --template '{rev}\n'
186 184 2
187 185 $ rm -fr n1 n2
188 $ echo
189
190 186
191 187 pull in changes on both foreign and local branches
192 188
@@ -220,8 +216,6 b' parent should be 4 (fast forward)'
220 216 $ hg -R n2 parents --template '{rev}\n'
221 217 4
222 218 $ rm -fr n1 n2
223 $ echo
224
225 219
226 220 pull changes on foreign (2 new heads) and local (1 new head) branches
227 221 with a local change
@@ -393,8 +387,6 b' test issue1726'
393 387 new changeset 3:* merges remote changes with local (glob)
394 388 $ hg --cwd i1726r2 heads default --template '{rev}\n'
395 389 3
396 $ echo
397
398 390
399 391 test issue2047
400 392
@@ -520,8 +520,6 b' hgweb fileannotate, raw'
520 520 $ echo "" >> b
521 521 $ echo "" >> b
522 522 $ diff -u b a
523 $ echo
524
525 523
526 524 hgweb filerevision, raw
527 525
@@ -531,8 +529,6 b' hgweb filerevision, raw'
531 529 $ echo "" >> b
532 530 $ hg cat primes.py >> b
533 531 $ diff -u b a
534 $ echo
535
536 532
537 533 hgweb highlightcss friendly
538 534
@@ -19,12 +19,10 b''
19 19 [hooks]
20 20 pretxncommit.cr = python:hgext.win32text.forbidcr
21 21 pretxnchangegroup.cr = python:hgext.win32text.forbidcr
22 $ echo
23 22
24 23 $ echo hello > f
25 24 $ hg add f
26 25 $ hg ci -m 1
27 $ echo
28 26
29 27 $ python unix2mac.py f
30 28 $ hg ci -m 2
@@ -31,7 +31,6 b' revision 3 - simple to merge'
31 31 $ hg commit -Am "revision 3"
32 32 created new head
33 33 $ echo "[merge-tools]" > .hg/hgrc
34 $ echo
35 34
36 35 $ beforemerge() {
37 36 > cat .hg/hgrc
@@ -44,7 +43,6 b' revision 3 - simple to merge'
44 43 > echo "# hg stat"
45 44 > hg stat
46 45 > rm -f f.orig
47 > echo
48 46 > }
49 47 $ domerge() {
50 48 > beforemerge
@@ -52,14 +50,9 b' revision 3 - simple to merge'
52 50 > hg merge $*
53 51 > aftermerge
54 52 > }
55 $ echo
56
57 53
58 54 Tool selection
59 55
60 $ echo
61
62
63 56 default is internal merge:
64 57
65 58 $ beforemerge
@@ -89,7 +82,6 b' running from a devel copy, not a temp in'
89 82 M f
90 83 ? f.orig
91 84
92
93 85 simplest hgrc using false for merge:
94 86
95 87 $ echo "false.whatever=" >> .hg/hgrc
@@ -109,7 +101,6 b' simplest hgrc using false for merge:'
109 101 M f
110 102 ? f.orig
111 103
112
113 104 true with higher .priority gets precedence:
114 105
115 106 $ echo "true.priority=1" >> .hg/hgrc
@@ -128,7 +119,6 b' true with higher .priority gets preceden'
128 119 # hg stat
129 120 M f
130 121
131
132 122 unless lowered on command line:
133 123
134 124 $ domerge -r 2 --config merge-tools.true.priority=-7
@@ -148,7 +138,6 b' unless lowered on command line:'
148 138 M f
149 139 ? f.orig
150 140
151
152 141 or false set higher on command line:
153 142
154 143 $ domerge -r 2 --config merge-tools.false.priority=117
@@ -168,7 +157,6 b' or false set higher on command line:'
168 157 M f
169 158 ? f.orig
170 159
171
172 160 or true.executable not found in PATH:
173 161
174 162 $ domerge -r 2 --config merge-tools.true.executable=nonexistingmergetool
@@ -188,7 +176,6 b' or true.executable not found in PATH:'
188 176 M f
189 177 ? f.orig
190 178
191
192 179 or true.executable with bogus path:
193 180
194 181 $ domerge -r 2 --config merge-tools.true.executable=/nonexisting/mergetool
@@ -208,7 +195,6 b' or true.executable with bogus path:'
208 195 M f
209 196 ? f.orig
210 197
211
212 198 but true.executable set to cat found in PATH works:
213 199
214 200 $ echo "true.executable=cat" >> .hg/hgrc
@@ -234,7 +220,6 b' but true.executable set to cat found in '
234 220 # hg stat
235 221 M f
236 222
237
238 223 and true.executable set to cat with path works:
239 224
240 225 $ domerge -r 2 --config merge-tools.true.executable=cat
@@ -259,14 +244,8 b' and true.executable set to cat with path'
259 244 # hg stat
260 245 M f
261 246
262 $ echo
263
264
265 247 Tool selection and merge-patterns
266 248
267 $ echo
268
269
270 249 merge-patterns specifies new tool false:
271 250
272 251 $ domerge -r 2 --config merge-patterns.f=false
@@ -287,7 +266,6 b' merge-patterns specifies new tool false:'
287 266 M f
288 267 ? f.orig
289 268
290
291 269 merge-patterns specifies executable not found in PATH and gets warning:
292 270
293 271 $ domerge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=nonexistingmergetool
@@ -309,7 +287,6 b' merge-patterns specifies executable not '
309 287 M f
310 288 ? f.orig
311 289
312
313 290 merge-patterns specifies executable with bogus path and gets warning:
314 291
315 292 $ domerge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=/nonexisting/mergetool
@@ -331,14 +308,8 b' merge-patterns specifies executable with'
331 308 M f
332 309 ? f.orig
333 310
334 $ echo
335
336
337 311 ui.merge overrules priority
338 312
339 $ echo
340
341
342 313 ui.merge specifies false:
343 314
344 315 $ domerge -r 2 --config ui.merge=false
@@ -359,7 +330,6 b' ui.merge specifies false:'
359 330 M f
360 331 ? f.orig
361 332
362
363 333 ui.merge specifies internal:fail:
364 334
365 335 $ domerge -r 2 --config ui.merge=internal:fail
@@ -377,7 +347,6 b' ui.merge specifies internal:fail:'
377 347 # hg stat
378 348 M f
379 349
380
381 350 ui.merge specifies internal:local:
382 351
383 352 $ domerge -r 2 --config ui.merge=internal:local
@@ -395,7 +364,6 b' ui.merge specifies internal:local:'
395 364 # hg stat
396 365 M f
397 366
398
399 367 ui.merge specifies internal:other:
400 368
401 369 $ domerge -r 2 --config ui.merge=internal:other
@@ -413,7 +381,6 b' ui.merge specifies internal:other:'
413 381 # hg stat
414 382 M f
415 383
416
417 384 ui.merge specifies internal:prompt:
418 385
419 386 $ domerge -r 2 --config ui.merge=internal:prompt
@@ -433,7 +400,6 b' ui.merge specifies internal:prompt:'
433 400 # hg stat
434 401 M f
435 402
436
437 403 ui.merge specifies internal:dump:
438 404
439 405 $ domerge -r 2 --config ui.merge=internal:dump
@@ -456,7 +422,6 b' ui.merge specifies internal:dump:'
456 422 ? f.orig
457 423 ? f.other
458 424
459
460 425 f.base:
461 426
462 427 $ cat f.base
@@ -475,8 +440,6 b' f.other:'
475 440 revision 2
476 441 space
477 442 $ rm f.base f.local f.other
478 $ echo
479
480 443
481 444 ui.merge specifies internal:other but is overruled by pattern for false:
482 445
@@ -498,14 +461,8 b' ui.merge specifies internal:other but is'
498 461 M f
499 462 ? f.orig
500 463
501 $ echo
502
503
504 464 Premerge
505 465
506 $ echo
507
508
509 466 ui.merge specifies internal:other but is overruled by --tool=false
510 467
511 468 $ domerge -r 2 --config ui.merge=internal:other --tool=false
@@ -568,7 +525,6 b' Default is silent simplemerge:'
568 525 # hg stat
569 526 M f
570 527
571
572 528 .premerge=True is same:
573 529
574 530 $ domerge -r 3 --config merge-tools.true.premerge=True
@@ -588,7 +544,6 b' Default is silent simplemerge:'
588 544 # hg stat
589 545 M f
590 546
591
592 547 .premerge=False executes merge-tool:
593 548
594 549 $ domerge -r 3 --config merge-tools.true.premerge=False
@@ -614,15 +569,10 b' Default is silent simplemerge:'
614 569 # hg stat
615 570 M f
616 571
617 $ echo
618
619
620 572 Tool execution
621 573
622 $ echo
574 set tools.args explicit to include $base $local $other $output:
623 575
624 $ echo '# set tools.args explicit to include $base $local $other $output:' # default '$local $base $other'
625 # set tools.args explicit to include $base $local $other $output:
626 576 $ beforemerge
627 577 [merge-tools]
628 578 false.whatever=
@@ -656,8 +606,8 b' Tool execution'
656 606 # hg stat
657 607 M f
658 608
659 $ echo '# Merge with "echo mergeresult > $local":'
660 # Merge with "echo mergeresult > $local":
609 Merge with "echo mergeresult > $local":
610
661 611 $ beforemerge
662 612 [merge-tools]
663 613 false.whatever=
@@ -674,8 +624,8 b' Tool execution'
674 624 # hg stat
675 625 M f
676 626
677 $ echo '# - and $local is the file f:'
678 # - and $local is the file f:
627 - and $local is the file f:
628
679 629 $ beforemerge
680 630 [merge-tools]
681 631 false.whatever=
@@ -692,8 +642,8 b' Tool execution'
692 642 # hg stat
693 643 M f
694 644
695 $ echo '# Merge with "echo mergeresult > $output" - the variable is a bit magic:'
696 # Merge with "echo mergeresult > $output" - the variable is a bit magic:
645 Merge with "echo mergeresult > $output" - the variable is a bit magic:
646
697 647 $ beforemerge
698 648 [merge-tools]
699 649 false.whatever=
@@ -710,7 +660,6 b' Tool execution'
710 660 # hg stat
711 661 M f
712 662
713
714 663 Merge using tool with a path that must be quoted:
715 664
716 665 $ beforemerge
@@ -740,14 +689,8 b' Merge using tool with a path that must b'
740 689 # hg stat
741 690 M f
742 691
743 $ echo
744
745
746 692 Merge post-processing
747 693
748 $ echo
749
750
751 694 cat is a bad merge-tool and doesn't change:
752 695
753 696 $ domerge -y -r 2 --config merge-tools.true.checkchanged=1
@@ -775,4 +718,3 b" cat is a bad merge-tool and doesn't chan"
775 718 # hg stat
776 719 M f
777 720 ? f.orig
778
@@ -110,8 +110,7 b' merge fails'
110 110 $ hg merge 2
111 111 abort: outstanding uncommitted changes (use 'hg status' to list changes)
112 112 [255]
113 $ echo %% merge expected!
114 %% merge expected!
113 merge expected!
115 114 $ hg merge -f 2
116 115 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
117 116 (branch merge, don't forget to commit)
@@ -16,14 +16,10 b' imported patches in series file.'
16 16 > a
17 17 > +b
18 18 > EOF
19 $ echo
20
21 19
22 20 empty series
23 21
24 22 $ hg qseries
25 $ echo
26
27 23
28 24 qimport valid patch followed by invalid patch
29 25
@@ -31,8 +27,6 b' qimport valid patch followed by invalid '
31 27 adding b.patch to series file
32 28 abort: unable to read file fakepatch
33 29 [255]
34 $ echo
35
36 30
37 31 valid patches before fail added to series
38 32
@@ -135,8 +135,6 b' Add invalid tags:'
135 135 $ echo >> .hgtags
136 136 $ echo "foo bar" >> .hgtags
137 137 $ echo "a5a5 invalid" >> .hg/localtags
138 $ echo "committing .hgtags:"
139 committing .hgtags:
140 138 $ cat .hgtags
141 139 acb14030fe0a21b60322c440ad2d20cf7685a376 first
142 140 spam
@@ -16,7 +16,6 b''
16 16 [hooks]
17 17 pretxncommit.crlf = python:hgext.win32text.forbidcrlf
18 18 pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
19 $ echo
20 19
21 20 $ echo hello > f
22 21 $ hg add f
@@ -24,7 +23,6 b''
24 23 commit should succeed
25 24
26 25 $ hg ci -m 1
27 $ echo
28 26
29 27 $ hg clone . ../zoz
30 28 updating to branch default
@@ -41,7 +39,6 b' commit should fail'
41 39 rollback completed
42 40 abort: pretxncommit.crlf hook failed
43 41 [255]
44 $ echo
45 42
46 43 $ mv .hg/hgrc .hg/hgrc.bak
47 44
@@ -50,8 +47,6 b' commits should succeed'
50 47 $ hg ci -m 2
51 48 $ hg cp f g
52 49 $ hg ci -m 2.2
53 $ echo
54
55 50
56 51 push should fail
57 52
@@ -84,7 +79,6 b' push should fail'
84 79 rollback completed
85 80 abort: pretxnchangegroup.crlf hook failed
86 81 [255]
87 $ echo
88 82
89 83 $ mv .hg/hgrc.bak .hg/hgrc
90 84 $ echo hello > f
@@ -93,8 +87,6 b' push should fail'
93 87 commit should succeed
94 88
95 89 $ hg ci -m 2.3
96 $ echo
97
98 90
99 91 push should succeed
100 92
@@ -105,8 +97,6 b' push should succeed'
105 97 adding manifests
106 98 adding file changes
107 99 added 3 changesets with 3 changes to 2 files
108 $ echo
109
110 100
111 101 and now for something completely different
112 102
@@ -124,11 +114,9 b' and now for something completely differe'
124 114 $ hg revert -a
125 115 forgetting d/f2
126 116 $ rm d/f2
127 $ echo
128 117
129 118 $ hg rem f
130 119 $ hg ci -m 4
131 $ echo
132 120
133 121 $ python -c 'file("bin", "wb").write("hello\x00\x0D\x0A")'
134 122 $ hg add bin
@@ -183,12 +171,9 b' and now for something completely differe'
183 171 1
184 172
185 173
186 $ echo
187
188 174 $ hg clone . dupe
189 175 updating to branch default
190 176 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
191 $ echo
192 177
193 178 $ for x in a b c d; do echo content > dupe/$x; done
194 179 $ hg -R dupe add
@@ -274,8 +259,6 b' and now for something completely differe'
274 259 1
275 260
276 261
277 $ echo
278
279 262 $ hg pull dupe
280 263 pulling from dupe
281 264 searching for changes
@@ -306,7 +289,6 b' and now for something completely differe'
306 289 rollback completed
307 290 abort: pretxnchangegroup.crlf hook failed
308 291 [255]
309 $ echo
310 292
311 293 $ hg log -v
312 294 changeset: 5:f0b1c8d75fce
@@ -358,8 +340,6 b' and now for something completely differe'
358 340 1
359 341
360 342
361 $ echo
362
363 343 $ rm .hg/hgrc
364 344 $ (echo some; echo text) > f3
365 345 $ python -c 'file("f4.bat", "wb").write("rem empty\x0D\x0A")'
@@ -372,7 +352,6 b' and now for something completely differe'
372 352 text
373 353 $ cat f4.bat
374 354 rem empty\r (esc)
375 $ echo
376 355
377 356 $ echo '[extensions]' >> .hg/hgrc
378 357 $ echo 'win32text = ' >> .hg/hgrc
@@ -415,7 +394,6 b' Disable warning:'
415 394 text\r (esc)
416 395 $ cat f4.bat
417 396 rem empty\r (esc)
418 $ echo
419 397
420 398 $ python -c 'file("f5.sh", "wb").write("# empty\x0D\x0A")'
421 399 $ hg add f5.sh
General Comments 0
You need to be logged in to leave comments. Login now