comparison tests/test-convert-cvs.t @ 37890:cf76642cb2bb

tests: b prefixes on some inline python in test-convert-cvs.t # skip-blame just b prefixes Differential Revision: https://phab.mercurial-scm.org/D3488
author Augie Fackler <augie@google.com>
date Fri, 27 Apr 2018 01:30:29 -0400
parents a38ac7ec8e03
children c70bdd222dcd
comparison
equal deleted inserted replaced
37889:d4aad0dd69ed 37890:cf76642cb2bb
520 |euc-jp |\xa4\xa2 | x o o | 520 |euc-jp |\xa4\xa2 | x o o |
521 |cp932 |\x82\xa0 | x x o | 521 |cp932 |\x82\xa0 | x x o |
522 522
523 $ mkdir -p cvsrepo/transcoding 523 $ mkdir -p cvsrepo/transcoding
524 $ python <<EOF 524 $ python <<EOF
525 > fp = open('cvsrepo/transcoding/file,v', 'w') 525 > fp = open('cvsrepo/transcoding/file,v', 'wb')
526 > fp.write((''' 526 > fp.write((b'''
527 > head 1.4; 527 > head 1.4;
528 > access; 528 > access;
529 > symbols 529 > symbols
530 > start:1.1.1.1 INITIAL:1.1.1; 530 > start:1.1.1.1 INITIAL:1.1.1;
531 > locks; strict; 531 > locks; strict;
568 > @@ 568 > @@
569 > 569 >
570 > 570 >
571 > 1.4 571 > 1.4
572 > log 572 > log
573 > @''' + u'\u3042'.encode('cp932') + ''' (cp932) 573 > @''' + u'\u3042'.encode('cp932') + b''' (cp932)
574 > @ 574 > @
575 > text 575 > text
576 > @1 576 > @1
577 > 2 577 > 2
578 > 3 578 > 3
580 > @ 580 > @
581 > 581 >
582 > 582 >
583 > 1.3 583 > 1.3
584 > log 584 > log
585 > @''' + u'\u3042'.encode('euc-jp') + ''' (euc-jp) 585 > @''' + u'\u3042'.encode('euc-jp') + b''' (euc-jp)
586 > @ 586 > @
587 > text 587 > text
588 > @d4 1 588 > @d4 1
589 > @ 589 > @
590 > 590 >
591 > 591 >
592 > 1.2 592 > 1.2
593 > log 593 > log
594 > @''' + u'\u3042'.encode('utf-8') + ''' (utf-8) 594 > @''' + u'\u3042'.encode('utf-8') + b''' (utf-8)
595 > @ 595 > @
596 > text 596 > text
597 > @d3 1 597 > @d3 1
598 > @ 598 > @
599 > 599 >