Mercurial > hg
view tests/test-churn.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 | 7c3c44413bc1 |
children |
line wrap: on
line source
% create test repository adding a adding b adding c % churn separate directories user1 1 *************************************************************** % churn all user3 3 *************************************************************** user1 3 *************************************************************** user2 2 ****************************************** % churn excluding one dir user3 3 *************************************************************** user2 2 ****************************************** user1 2 ****************************************** % churn up to rev 2 user2 2 *************************************************************** user1 1 ******************************** % churn with aliases skipping malformed alias: not-an-alias alias3 3 ************************************************************** alias1 3 ************************************************************** user2 2 ***************************************** % churn with .hgchurn skipping malformed alias: not-an-alias alias3 3 ************************************************************** alias1 3 ************************************************************** user2 2 ***************************************** % churn with column specifier user3 3 *********************** user1 3 *********************** user2 2 *************** % churn by hour 06 1 ***************** 09 2 ********************************* 12 4 ****************************************************************** 13 1 ***************** % churn with separated added/removed lines user1 +3/-1 +++++++++++++++++++++++++++++++++++++++++-------------- user3 +3/-0 +++++++++++++++++++++++++++++++++++++++++ user2 +2/-0 +++++++++++++++++++++++++++ % churn --diffstat with color user1 +3/-1 [0;32m+++++++++++++++++++++++++++++++++++++++++[0m[0;31m--------------[0m user3 +3/-0 [0;32m+++++++++++++++++++++++++++++++++++++++++[0m user2 +2/-0 [0;32m+++++++++++++++++++++++++++[0m % changeset number churn user1 4 *************************************************************** user3 3 *********************************************** user2 2 ******************************** % churn with space in alias no-space 1 ************************************************************ adding foo test 0