tests/test-patchbomb.t
changeset 39067 1eb779a86c4e
parent 37837 326b174c6a47
child 39073 598467614c15
equal deleted inserted replaced
39066:78f1899e4202 39067:1eb779a86c4e
   440   zXYS3BoGxdrJDIYmlimJJiZpRokmqYYmaSYWFknmSSkmhqbmliamiZYWxuYmBhbJBgZcUBNZQe5K
   440   zXYS3BoGxdrJDIYmlimJJiZpRokmqYYmaSYWFknmSSkmhqbmliamiZYWxuYmBhbJBgZcUBNZQe5K
   441   Epm7xF/LT+RLx/a9juFTomaYO/Rgsx4rwBN+IMCUDLOKAQBrsmti
   441   Epm7xF/LT+RLx/a9juFTomaYO/Rgsx4rwBN+IMCUDLOKAQBrsmti
   442   --===============*==-- (glob)
   442   --===============*==-- (glob)
   443 
   443 
   444 utf-8 patch:
   444 utf-8 patch:
   445   $ $PYTHON -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
   445   $ $PYTHON -c 'fp = open("utf", "wb"); fp.write(b"h\xC3\xB6mma!\n"); fp.close();'
   446   $ hg commit -A -d '4 0' -m 'utf-8 content'
   446   $ hg commit -A -d '4 0' -m 'utf-8 content'
   447   adding description
   447   adding description
   448   adding utf
   448   adding utf
   449 
   449 
   450 no mime encoding for email --test:
   450 no mime encoding for email --test:
   549   +h\xc3\xb6mma! (esc)
   549   +h\xc3\xb6mma! (esc)
   550   
   550   
   551   $ rm mbox
   551   $ rm mbox
   552 
   552 
   553 mime encoded mbox (quoted-printable):
   553 mime encoded mbox (quoted-printable):
   554   $ $PYTHON -c 'fp = open("long", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
   554   $ $PYTHON -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
   555   $ hg commit -A -d '4 0' -m 'long line'
   555   $ hg commit -A -d '4 0' -m 'long line'
   556   adding long
   556   adding long
   557 
   557 
   558 no mime encoding for email --test:
   558 no mime encoding for email --test:
   559   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
   559   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
   663   
   663   
   664 
   664 
   665   $ rm mbox
   665   $ rm mbox
   666 
   666 
   667 iso-8859-1 patch:
   667 iso-8859-1 patch:
   668   $ $PYTHON -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
   668   $ $PYTHON -c 'fp = open("isolatin", "wb"); fp.write(b"h\xF6mma!\n"); fp.close();'
   669   $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
   669   $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
   670   adding isolatin
   670   adding isolatin
   671 
   671 
   672 iso-8859-1 mbox:
   672 iso-8859-1 mbox:
   673   $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
   673   $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox