changeset 4773:169fe1e6104c

convert: make convertsource option handling transparent
author Brendan Cully <brendan@kublai.com>
date Mon, 02 Jul 2007 22:33:48 -0700
parents e321f16f4eac
children 38bf55d2e41f
files hgext/convert/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py
+++ b/hgext/convert/__init__.py
@@ -18,12 +18,12 @@ commands.norepo += " convert"
 
 converters = [convert_cvs, convert_git, convert_svn, convert_mercurial]
 
-def convertsource(ui, path, rev=None):
+def convertsource(ui, path, **opts):
     for c in converters:
         if not hasattr(c, 'getcommit'):
             continue
         try:
-            return c(ui, path, rev=rev)
+            return c(ui, path, **opts)
         except NoRepo:
             pass
     raise util.Abort('%s: unknown repository type' % path)