Mercurial > hg
comparison tests/test-commandserver.t @ 39951:a339b5e0d7c6
py3: suppress the output from .write() calls in more tests
I missed these in 803b7569c9ea because I forgot about `...` lines.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 01 Oct 2018 23:26:24 -0400 |
parents | f1186c292d03 |
children | f9f2faf25fc4 |
comparison
equal
deleted
inserted
replaced
39950:8d41097dfe7d | 39951:a339b5e0d7c6 |
---|---|
296 ... os.system('hg upd bm1 -q') | 296 ... os.system('hg upd bm1 -q') |
297 ... runcommand(server, ['bookmarks']) | 297 ... runcommand(server, ['bookmarks']) |
298 ... | 298 ... |
299 ... runcommand(server, ['bookmarks', 'bm3']) | 299 ... runcommand(server, ['bookmarks', 'bm3']) |
300 ... f = open('a', 'ab') | 300 ... f = open('a', 'ab') |
301 ... f.write('a\n') | 301 ... f.write('a\n') and None |
302 ... f.close() | 302 ... f.close() |
303 ... runcommand(server, ['commit', '-Amm']) | 303 ... runcommand(server, ['commit', '-Amm']) |
304 ... runcommand(server, ['bookmarks']) | 304 ... runcommand(server, ['bookmarks']) |
305 ... print('') | 305 ... print('') |
306 *** runcommand bookmarks | 306 *** runcommand bookmarks |
389 >>> @check | 389 >>> @check |
390 ... def hgignore(server): | 390 ... def hgignore(server): |
391 ... readchannel(server) | 391 ... readchannel(server) |
392 ... runcommand(server, ['commit', '-Am.']) | 392 ... runcommand(server, ['commit', '-Am.']) |
393 ... f = open('ignored-file', 'ab') | 393 ... f = open('ignored-file', 'ab') |
394 ... f.write('') | 394 ... f.write('') and None |
395 ... f.close() | 395 ... f.close() |
396 ... f = open('.hgignore', 'ab') | 396 ... f = open('.hgignore', 'ab') |
397 ... f.write('ignored-file') | 397 ... f.write('ignored-file') |
398 ... f.close() | 398 ... f.close() |
399 ... runcommand(server, ['status', '-i', '-u']) | 399 ... runcommand(server, ['status', '-i', '-u']) |
416 ... runcommand(server, ['log', '-qr', 'draft()']) | 416 ... runcommand(server, ['log', '-qr', 'draft()']) |
417 ... # create draft commits by another process | 417 ... # create draft commits by another process |
418 ... for i in range(5, 7): | 418 ... for i in range(5, 7): |
419 ... f = open('a', 'ab') | 419 ... f = open('a', 'ab') |
420 ... f.seek(0, os.SEEK_END) | 420 ... f.seek(0, os.SEEK_END) |
421 ... f.write('a\n') | 421 ... f.write('a\n') and None |
422 ... f.close() | 422 ... f.close() |
423 ... os.system('hg commit -Aqm%d' % i) | 423 ... os.system('hg commit -Aqm%d' % i) |
424 ... # new commits should be listed as draft revisions | 424 ... # new commits should be listed as draft revisions |
425 ... runcommand(server, ['log', '-qr', 'draft()']) | 425 ... runcommand(server, ['log', '-qr', 'draft()']) |
426 ... print('') | 426 ... print('') |
461 ... readchannel(server) | 461 ... readchannel(server) |
462 ... | 462 ... |
463 ... # create new head, 5:731265503d86 | 463 ... # create new head, 5:731265503d86 |
464 ... runcommand(server, ['update', '-C', '0']) | 464 ... runcommand(server, ['update', '-C', '0']) |
465 ... f = open('a', 'ab') | 465 ... f = open('a', 'ab') |
466 ... f.write('a\n') | 466 ... f.write('a\n') and None |
467 ... f.close() | 467 ... f.close() |
468 ... runcommand(server, ['commit', '-Am.', 'a']) | 468 ... runcommand(server, ['commit', '-Am.', 'a']) |
469 ... runcommand(server, ['log', '-Gq']) | 469 ... runcommand(server, ['log', '-Gq']) |
470 ... | 470 ... |
471 ... # make it public; draft marker moves to 4:7966c8e3734d | 471 ... # make it public; draft marker moves to 4:7966c8e3734d |