sapling/hgext/convert
Brodie Rao 1833e73f70 convert/darcs: handle non-ASCII metadata in darcs changelog (issue2354)
Given a commit author or message with non-ASCII characters in a darcs
repo, convert would raise a UnicodeEncodeError when adding changesets
to the hg changelog.

This happened because etree returns back unicode objects for any text
it can't encode into ASCII. convert was passing these objects to
changelog.add(), which would then attempt encoding.fromlocal() on
them.

This patch ensures converter_source.recode() is called on each piece
of commit data returned by etree.

(Also note that darcs is currently encoding agnostic and will print
out whatever is in a patch's metadata byte-for-byte, even in the XML
changelog.)
2010-09-10 09:30:50 -05:00
..
__init__.py convert: help string cleanups 2010-09-10 00:36:01 +02:00
bzr.py convert: merge sources getmode() into getfile() 2010-05-09 21:52:34 +02:00
common.py convert: merge sources getmode() into getfile() 2010-05-09 21:52:34 +02:00
convcmd.py convert/progress: use plural and avoid retrieving 2010-07-30 10:38:54 +03:00
cvs.py convert: use encoding.encoding instead of locale.getpreferredencoding() 2010-08-18 10:53:52 -04:00
cvsps.py clean up remaining generic exceptions 2010-05-07 16:59:00 -05:00
darcs.py convert/darcs: handle non-ASCII metadata in darcs changelog (issue2354) 2010-09-10 09:30:50 -05:00
filemap.py convert: merge sources getmode() into getfile() 2010-05-09 21:52:34 +02:00
git.py convert: merge sources getmode() into getfile() 2010-05-09 21:52:34 +02:00
gnuarch.py convert: use encoding.encoding instead of locale.getpreferredencoding() 2010-08-18 10:53:52 -04:00
hg.py convert: merge sources getmode() into getfile() 2010-05-09 21:52:34 +02:00
monotone.py convert: merge sources getmode() into getfile() 2010-05-09 21:52:34 +02:00
p4.py p4: fix long line and bad spacing around % 2010-06-15 11:05:17 +02:00
subversion.py convert: less shouting in SVN sink warning 2010-08-11 12:29:20 +02:00
transport.py many, many trivial check-code fixups 2010-01-25 00:05:27 -06:00