Mercurial > hg
comparison hgext/convert/__init__.py @ 5438:6fa5258be3d4
convert: rename convert_svn to svn_source
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 10 Oct 2007 15:30:00 -0700 |
parents | 1d53a75ea0fc |
children | 71e7c86adcb7 |
comparison
equal
deleted
inserted
replaced
5437:4d34f8b12a9e | 5438:6fa5258be3d4 |
---|---|
8 from common import NoRepo, SKIPREV, converter_source, converter_sink | 8 from common import NoRepo, SKIPREV, converter_source, converter_sink |
9 from cvs import convert_cvs | 9 from cvs import convert_cvs |
10 from darcs import darcs_source | 10 from darcs import darcs_source |
11 from git import convert_git | 11 from git import convert_git |
12 from hg import mercurial_source, mercurial_sink | 12 from hg import mercurial_source, mercurial_sink |
13 from subversion import convert_svn, debugsvnlog | 13 from subversion import svn_source, debugsvnlog |
14 import filemap | 14 import filemap |
15 | 15 |
16 import os, shutil | 16 import os, shutil |
17 from mercurial import hg, ui, util, commands | 17 from mercurial import hg, ui, util, commands |
18 from mercurial.i18n import _ | 18 from mercurial.i18n import _ |
19 | 19 |
20 commands.norepo += " convert debugsvnlog" | 20 commands.norepo += " convert debugsvnlog" |
21 | 21 |
22 sink_converters = [mercurial_sink] | 22 sink_converters = [mercurial_sink] |
23 source_converters = [convert_cvs, convert_git, convert_svn, | 23 source_converters = [convert_cvs, convert_git, svn_source, |
24 mercurial_source, darcs_source] | 24 mercurial_source, darcs_source] |
25 def convertsource(ui, path, **opts): | 25 def convertsource(ui, path, **opts): |
26 for c in source_converters: | 26 for c in source_converters: |
27 try: | 27 try: |
28 return c.getcommit and c(ui, path, **opts) | 28 return c.getcommit and c(ui, path, **opts) |