Mercurial > hgsubversion
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 184:d3ea6c98a086 | 185:57355b0e7bd1 |
|---|---|
| 12 return fn | 12 return fn |
| 13 return inner | 13 return inner |
| 14 | 14 |
| 15 | 15 |
| 16 def generate_help(): | 16 def generate_help(): |
| 17 ret = ['', 'hg svn subcommand\n', 'Subcommands:\n'] | 17 ret = ['hg svn ...', '', |
| 18 'subcommands for Subversion integration', '', | |
| 19 'list of subcommands:', ''] | |
| 18 | 20 |
| 19 for name, func in sorted(svn_subcommands.items()): | 21 for name, func in sorted(svn_subcommands.items()): |
| 20 short_description = (func.__doc__ or '').split('\n')[0] | 22 short_description = (func.__doc__ or '').splitlines()[0] |
| 21 ret.append(" %-10s %s" % (name, short_description)) | 23 ret.append(" %-10s %s" % (name, short_description)) |
| 22 | 24 |
| 23 return "\n".join(ret) + '\n' | 25 return "\n".join(ret) + '\n' |
| 24 | 26 |
| 25 | 27 |
