Mercurial > hg
comparison hgext/children.py @ 8277:b9403042968a
write options in "-r/--rev" style in help texts
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sat, 02 May 2009 19:13:29 +0200 |
parents | eee2319c5895 |
children | e872ef2e6758 |
comparison
equal
deleted
inserted
replaced
8276:dd50067c2329 | 8277:b9403042968a |
---|---|
15 | 15 |
16 def children(ui, repo, file_=None, **opts): | 16 def children(ui, repo, file_=None, **opts): |
17 """show the children of the given or working directory revision | 17 """show the children of the given or working directory revision |
18 | 18 |
19 Print the children of the working directory's revisions. If a | 19 Print the children of the working directory's revisions. If a |
20 revision is given via --rev/-r, the children of that revision will | 20 revision is given via -r/--rev, the children of that revision will |
21 be printed. If a file argument is given, revision in which the | 21 be printed. If a file argument is given, revision in which the |
22 file was last changed (after the working directory revision or the | 22 file was last changed (after the working directory revision or the |
23 argument to --rev if given) is printed. | 23 argument to --rev if given) is printed. |
24 """ | 24 """ |
25 rev = opts.get('rev') | 25 rev = opts.get('rev') |