Mercurial > hg
changeset 6365:1d3eb332f3cb
convertrepo: make it work with refactored convert extension
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 23 Mar 2008 21:41:03 +0100 |
parents | b22b39059722 |
children | 07c3cd695b48 |
files | contrib/convert-repo |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/convert-repo Sun Mar 23 21:40:27 2008 +0100 +++ b/contrib/convert-repo Sun Mar 23 21:41:03 2008 +0100 @@ -17,9 +17,11 @@ 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)