# HG changeset patch # User Brendan Cully # Date 1183440828 25200 # Node ID 169fe1e6104cc2c70d2e2fa3f63f74ac1c97e392 # Parent e321f16f4eac1b082291a932f07903b3c04d8fa6 convert: make convertsource option handling transparent diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- 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)