##// END OF EJS Templates
convert: rename a class and a function
Alexis S. L. Carvalho -
r5281:a176f9c8 default
parent child Browse files
Show More
@@ -38,7 +38,7 b' def convertsink(ui, path):'
38 38 pass
39 39 raise util.Abort('%s: unknown repository type' % path)
40 40
41 class convert(object):
41 class converter(object):
42 42 def __init__(self, ui, source, dest, revmapfile, filemapper, opts):
43 43
44 44 self.source = source
@@ -363,7 +363,7 b' class filemapper(object):'
363 363 def active(self):
364 364 return bool(self.include or self.exclude or self.rename)
365 365
366 def _convert(ui, src, dest=None, revmapfile=None, **opts):
366 def convert(ui, src, dest=None, revmapfile=None, **opts):
367 367 """Convert a foreign SCM repository to a Mercurial one.
368 368
369 369 Accepted source formats:
@@ -462,14 +462,14 b' def _convert(ui, src, dest=None, revmapf'
462 462 revmapfile = os.path.join(destc, "map")
463 463
464 464
465 c = convert(ui, srcc, destc, revmapfile, filemapper(ui, opts['filemap']),
466 opts)
465 c = converter(ui, srcc, destc, revmapfile, filemapper(ui, opts['filemap']),
466 opts)
467 467 c.convert()
468 468
469 469
470 470 cmdtable = {
471 471 "convert":
472 (_convert,
472 (convert,
473 473 [('A', 'authors', '', 'username mapping filename'),
474 474 ('', 'filemap', '', 'remap file names using contents of file'),
475 475 ('r', 'rev', '', 'import up to target revision REV'),
General Comments 0
You need to be logged in to leave comments. Login now