Mercurial > hg
comparison tests/test-convert-darcs.out @ 12717:89df79b3c011 stable
convert/darcs: support changelogs with bytes 0x7F-0xFF (issue2411)
This is a followup to 4481f8a93c7a, which only fixed the conversion of
patches with UTF-8 metadata.
This patch allows a changelog to have any bytes with values
0x7F-0xFF. It parses the XML changelog as Latin-1 and uses
converter_source.recode() to decode the data as UTF-8/Latin-1.
Caveats:
- Since the convert extension doesn't provide any way to specify the
source encoding, users are still limited to UTF-8 and Latin-1.
- etree will still complain if the changelog has bytes with values
0x00-0x19. XML only allows printable characters.
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Fri, 01 Oct 2010 10:15:04 -0500 |
parents | 84ceedcfeb6a |
children |
comparison
equal
deleted
inserted
replaced
12614:f314723f36f5 | 12717:89df79b3c011 |
---|---|
14 Finished recording patch 'p2' | 14 Finished recording patch 'p2' |
15 % test file and directory move | 15 % test file and directory move |
16 Finished recording patch 'p3' | 16 Finished recording patch 'p3' |
17 % test utf-8 commit message and author | 17 % test utf-8 commit message and author |
18 Finished recording patch 'p4: desc ñ' | 18 Finished recording patch 'p4: desc ñ' |
19 % test latin-1 commit message | |
20 Finished recording patch 'p5: desc ' | |
19 initializing destination darcs-repo-hg repository | 21 initializing destination darcs-repo-hg repository |
20 scanning source... | 22 scanning source... |
21 sorting... | 23 sorting... |
22 converting... | 24 converting... |
23 5 p0 | 25 6 p0 |
24 4 p1.2 | 26 5 p1.2 |
25 3 p1.1 | 27 4 p1.1 |
26 2 p2 | 28 3 p2 |
27 1 p3 | 29 2 p3 |
28 0 p4: desc ? | 30 1 p4: desc ? |
29 o 5 "p4: desc ñ" (author ñ) files: g | 31 0 p5: desc ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? |
32 o 6 "p5: desc \x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" (test@example.org) files: h | |
33 | | |
34 o 5 "p4: desc \xc3\xb1" (author \xc3\xb1) files: g | |
30 | | 35 | |
31 o 4 "p3" (test@example.org) files: dir/d dir/d2 dir2/d f ff | 36 o 4 "p3" (test@example.org) files: dir/d dir/d2 dir2/d f ff |
32 | | 37 | |
33 o 3 "p2" (test@example.org) files: a dir/d dir/d2 f | 38 o 3 "p2" (test@example.org) files: a dir/d dir/d2 f |
34 | | 39 | |
41 7225b30cdf38257d5cc7780772c051b6f33e6d6b 644 a | 46 7225b30cdf38257d5cc7780772c051b6f33e6d6b 644 a |
42 1e88685f5ddec574a34c70af492f95b6debc8741 644 b | 47 1e88685f5ddec574a34c70af492f95b6debc8741 644 b |
43 37406831adc447ec2385014019599dfec953c806 644 dir2/d | 48 37406831adc447ec2385014019599dfec953c806 644 dir2/d |
44 b783a337463792a5c7d548ad85a7d3253c16ba8c 644 ff | 49 b783a337463792a5c7d548ad85a7d3253c16ba8c 644 ff |
45 0973eb1b2ecc4de7fafe7447ce1b7462108b4848 644 g | 50 0973eb1b2ecc4de7fafe7447ce1b7462108b4848 644 g |
51 fe6f8b4f507fe3eb524c527192a84920a4288dac 644 h |