# HG changeset patch # User Alexis S. L. Carvalho # Date 2007-09-01 05:49:18 # Node ID a176f9c8b26e0a7cd526b7220bdb76be0b9e8fa9 # Parent 11e1e574da02591083fc191ec81f342bc39e5284 convert: rename a class and a function diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- a/hgext/convert/__init__.py +++ b/hgext/convert/__init__.py @@ -38,7 +38,7 @@ def convertsink(ui, path): pass raise util.Abort('%s: unknown repository type' % path) -class convert(object): +class converter(object): def __init__(self, ui, source, dest, revmapfile, filemapper, opts): self.source = source @@ -363,7 +363,7 @@ class filemapper(object): def active(self): return bool(self.include or self.exclude or self.rename) -def _convert(ui, src, dest=None, revmapfile=None, **opts): +def convert(ui, src, dest=None, revmapfile=None, **opts): """Convert a foreign SCM repository to a Mercurial one. Accepted source formats: @@ -462,14 +462,14 @@ def _convert(ui, src, dest=None, revmapf revmapfile = os.path.join(destc, "map") - c = convert(ui, srcc, destc, revmapfile, filemapper(ui, opts['filemap']), - opts) + c = converter(ui, srcc, destc, revmapfile, filemapper(ui, opts['filemap']), + opts) c.convert() cmdtable = { "convert": - (_convert, + (convert, [('A', 'authors', '', 'username mapping filename'), ('', 'filemap', '', 'remap file names using contents of file'), ('r', 'rev', '', 'import up to target revision REV'),