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.
--- a/hgext/convert/__init__.py Sat Jul 21 10:30:51 2007 +0200
+++ b/hgext/convert/__init__.py Sat Jul 21 10:36:51 2007 +0200
@@ -260,7 +260,7 @@
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 @@
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 <mapfile> isn\'t given, it will be put in a default location
+ If <mapfile> isn't given, it will be put in a default location
(<dest>/.hg/shamap by default). The <mapfile> is a simple text
file that maps each source commit ID to the destination ID for
that revision, like so:
<source ID> <destination ID>
- 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 @@
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'