Mercurial > hgsubversion
diff util.py @ 185:57355b0e7bd1
Creating patch for documention messages.
author | Dan Villiom Podlaski Christiansen <danchr@cs.au.dk> |
---|---|
date | Sat, 17 Jan 2009 15:30:37 -0600 |
parents | 463998d266e3 |
children | 6266ba36ee15 |
line wrap: on
line diff
--- a/util.py +++ b/util.py @@ -14,10 +14,12 @@ def register_subcommand(name): def generate_help(): - ret = ['', 'hg svn subcommand\n', 'Subcommands:\n'] + ret = ['hg svn ...', '', + 'subcommands for Subversion integration', '', + 'list of subcommands:', ''] for name, func in sorted(svn_subcommands.items()): - short_description = (func.__doc__ or '').split('\n')[0] + short_description = (func.__doc__ or '').splitlines()[0] ret.append(" %-10s %s" % (name, short_description)) return "\n".join(ret) + '\n'