mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
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:
parent
4770c831b2
commit
b476b55a4a
@ -269,6 +269,8 @@ def _convert(ui, src, dest=None, mapfile=None, **opts):
|
|||||||
srcauthor=whatever string you want
|
srcauthor=whatever string you want
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
util._encoding = 'UTF-8'
|
||||||
|
|
||||||
srcc = converter(ui, src)
|
srcc = converter(ui, src)
|
||||||
if not hasattr(srcc, "getcommit"):
|
if not hasattr(srcc, "getcommit"):
|
||||||
raise util.Abort("%s: can't read from this repo type" % src)
|
raise util.Abort("%s: can't read from this repo type" % src)
|
||||||
|
Loading…
Reference in New Issue
Block a user