convert: manually set encoding to UTF-8

Right now the backends assume we're working in UTF-8 and there's
no good way to ignore the encoding when adding revisions.
This commit is contained in:
Alexis S. L. Carvalho 2007-07-17 09:08:29 -03:00
parent 4770c831b2
commit b476b55a4a

View File

@ -269,6 +269,8 @@ def _convert(ui, src, dest=None, mapfile=None, **opts):
srcauthor=whatever string you want
'''
util._encoding = 'UTF-8'
srcc = converter(ui, src)
if not hasattr(srcc, "getcommit"):
raise util.Abort("%s: can't read from this repo type" % src)