Mercurial > hg
comparison hgext/convert/__init__.py @ 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 | 72ac66e88c43 |
children | ee04732fe61d |
comparison
equal
deleted
inserted
replaced
4894:be5dc5e3ab2d | 4895:fa6c9381d053 |
---|---|
266 commit author to a destination commit author. It is handy for source SCMs | 266 commit author to a destination commit author. It is handy for source SCMs |
267 that use unix logins to identify authors (eg: CVS). One line per author | 267 that use unix logins to identify authors (eg: CVS). One line per author |
268 mapping and the line format is: | 268 mapping and the line format is: |
269 srcauthor=whatever string you want | 269 srcauthor=whatever string you want |
270 ''' | 270 ''' |
271 | |
272 util._encoding = 'UTF-8' | |
271 | 273 |
272 srcc = converter(ui, src) | 274 srcc = converter(ui, src) |
273 if not hasattr(srcc, "getcommit"): | 275 if not hasattr(srcc, "getcommit"): |
274 raise util.Abort("%s: can't read from this repo type" % src) | 276 raise util.Abort("%s: can't read from this repo type" % src) |
275 | 277 |