changeset 4895:fa6c9381d053

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.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 17 Jul 2007 09:08:29 -0300
parents be5dc5e3ab2d
children ee04732fe61d 2a7d30c97f89
files hgext/convert/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Tue Jul 17 09:08:29 2007 -0300
+++ b/hgext/convert/__init__.py	Tue Jul 17 09:08:29 2007 -0300
@@ -269,6 +269,8 @@
     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)