comparison __init__.py @ 115:ed42f6e5705a

Clean up help text, document subcommands.
author Luke Opperman <luke@loppear.com>
date Thu, 20 Nov 2008 22:03:30 -0600
parents fb1d911bb0be
children 291925677a9f
comparison
equal deleted inserted replaced
114:3c5c2683eebb 115:ed42f6e5705a
3 from mercurial import commands 3 from mercurial import commands
4 from mercurial import hg 4 from mercurial import hg
5 5
6 import svncommand 6 import svncommand
7 import fetch_command 7 import fetch_command
8
8 9
9 def svn(ui, repo, subcommand, *args, **opts): 10 def svn(ui, repo, subcommand, *args, **opts):
10 return svncommand.svncmd(ui, repo, subcommand, *args, **opts) 11 return svncommand.svncmd(ui, repo, subcommand, *args, **opts)
11 12
12 def svn_fetch(ui, svn_url, hg_repo_path=None, **opts): 13 def svn_fetch(ui, svn_url, hg_repo_path=None, **opts):
25 "svn": 26 "svn":
26 (svn, 27 (svn,
27 [('u', 'svn_url', '', 'Path to the Subversion server.'), 28 [('u', 'svn_url', '', 'Path to the Subversion server.'),
28 ('', 'stupid', False, 'Be stupid and use diffy replay.'), 29 ('', 'stupid', False, 'Be stupid and use diffy replay.'),
29 ], 30 ],
30 'hg svn subcommand'), 31 svncommand.generate_help(),
32 ),
31 "svnclone" :(svn_fetch, 33 "svnclone" :(svn_fetch,
32 [('S', 'skipto_rev', '0', 'Skip commits before this revision.'), 34 [('S', 'skipto_rev', '0', 'Skip commits before this revision.'),
33 ('', 'stupid', False, 'Be stupid and use diffy replay.'), 35 ('', 'stupid', False, 'Be stupid and use diffy replay.'),
34 ('T', 'tag_locations', 'tags', 'Relative path to where tags get ' 36 ('T', 'tag_locations', 'tags', 'Relative path to where tags get '
35 'stored, as comma sep. values if there is more than one such path.') 37 'stored, as comma sep. values if there is more than one such path.')