# HG changeset patch # User Thomas Arendsen Hein # Date 2007-07-21 08:36:51 # Node ID 71fed370b7a77134e002eeb85312ca0065e0ad3c # Parent cdd33a04828988ef968cc51c6fddec08ded38790 Backout ad09ce1d393c and replace ''' with """ to make some highlighting happy. I have tried Debian's default emacs and the current CVS version. Default emacs doesn't have highlighting enabled (and being emacs-illiterate I don't know how to enable it) and the CVS emacs' Python highlighting has no problems with ' characters here. diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- a/hgext/convert/__init__.py +++ b/hgext/convert/__init__.py @@ -260,7 +260,7 @@ class convert(object): self.mapfilefd.close() def _convert(ui, src, dest=None, mapfile=None, **opts): - '''Convert a foreign SCM repository to a Mercurial one. + """Convert a foreign SCM repository to a Mercurial one. Accepted source formats: - GIT @@ -275,16 +275,16 @@ def _convert(ui, src, dest=None, mapfile understood by the source). If no destination directory name is specified, it defaults to the - basename of the source with \'-hg\' appended. If the destination - repository doesn\'t exist, it will be created. + basename of the source with '-hg' appended. If the destination + repository doesn't exist, it will be created. - If isn\'t given, it will be put in a default location + If isn't given, it will be put in a default location (/.hg/shamap by default). The is a simple text file that maps each source commit ID to the destination ID for that revision, like so: - If the file doesn\'t exist, it\'s automatically created. It\'s updated + If the file doesn't exist, it's automatically created. It's updated on each commit copied, so convert-repo can be interrupted and can be run repeatedly to copy new commits. @@ -293,7 +293,7 @@ def _convert(ui, src, dest=None, mapfile that use unix logins to identify authors (eg: CVS). One line per author mapping and the line format is: srcauthor=whatever string you want - ''' + """ util._encoding = 'UTF-8'