Mercurial > hg
annotate tests/test-hgcia.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 | b80b944836ec |
children |
rev | line source |
---|---|
7438 | 1 adding foo |
2 pushing to ../cia | |
3 searching for changes | |
4 adding changesets | |
5 adding manifests | |
6 adding file changes | |
7 added 1 changesets with 1 changes to 1 files | |
8 | |
9 <message> | |
10 <generator> | |
11 <name>Mercurial (hgcia)</name> | |
12 <version>0.1</version> | |
13 <url>http://hg.kublai.com/mercurial/hgcia</url> | |
14 <user>testuser</user> | |
15 </generator> | |
16 <source> | |
17 <project>testproject</project> | |
18 <branch>default</branch> | |
19 </source> | |
20 <body> | |
21 <commit> | |
22 <author>test</author> | |
23 <version>0:e63c23eaa88a</version> | |
24 <log>foo</log> | |
25 | |
26 <files><file action="add">foo</file></files> | |
27 </commit> | |
28 </body> | |
29 <timestamp>0</timestamp> | |
30 </message> |