# HG changeset patch # User Patrick Mezard # Date 2008-03-23 20:41:03 # Node ID 1d3eb332f3cbda7b468e406c959c93e69baf6037 # Parent b22b3905972291515c9dd45d3b56028c9daed352 convertrepo: make it work with refactored convert extension diff --git a/contrib/convert-repo b/contrib/convert-repo --- a/contrib/convert-repo +++ b/contrib/convert-repo @@ -17,9 +17,11 @@ u = ui.ui() opts = {} args = [] try: - args = fancyopts.fancyopts(sys.argv[1:], options, opts) -except fancyopts.getopt.GetoptError, inst: - u.warn('Usage:\n%s' % help) + args = list(fancyopts.fancyopts(sys.argv[1:], options, opts)) + args += [None]*(3 - len(args)) + src, dest, revmapfile = args +except (fancyopts.getopt.GetoptError, ValueError), inst: + u.warn('Usage:\n%s\n' % help) sys.exit(-1) -convert._convert(u, *args, **opts) +convert.convert(u, src, dest, revmapfile, **opts)