Mercurial > hg
comparison contrib/convert-repo @ 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 | ec889780f28b |
children |
comparison
equal
deleted
inserted
replaced
6364:b22b39059722 | 6365:1d3eb332f3cb |
---|---|
15 u = ui.ui() | 15 u = ui.ui() |
16 | 16 |
17 opts = {} | 17 opts = {} |
18 args = [] | 18 args = [] |
19 try: | 19 try: |
20 args = fancyopts.fancyopts(sys.argv[1:], options, opts) | 20 args = list(fancyopts.fancyopts(sys.argv[1:], options, opts)) |
21 except fancyopts.getopt.GetoptError, inst: | 21 args += [None]*(3 - len(args)) |
22 u.warn('Usage:\n%s' % help) | 22 src, dest, revmapfile = args |
23 except (fancyopts.getopt.GetoptError, ValueError), inst: | |
24 u.warn('Usage:\n%s\n' % help) | |
23 sys.exit(-1) | 25 sys.exit(-1) |
24 | 26 |
25 convert._convert(u, *args, **opts) | 27 convert.convert(u, src, dest, revmapfile, **opts) |