Mercurial > hg
comparison hgext/hgk.py @ 7598:26adfaccdf73
lowercase help output
Changes docstrings to begin with a lowercase word. Only docstrings
used in help output is changed.
Scripts are not expected to grep the output of 'hg help' so this
change should pose no problem with regard to the compatibility rules.
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sat, 03 Jan 2009 17:15:15 +0100 |
parents | b6f5490effbf |
children | 0e7f02eaa63b |
comparison
equal
deleted
inserted
replaced
7597:81f68565281c | 7598:26adfaccdf73 |
---|---|
128 ui.write(description + "\n") | 128 ui.write(description + "\n") |
129 if prefix: | 129 if prefix: |
130 ui.write('\0') | 130 ui.write('\0') |
131 | 131 |
132 def base(ui, repo, node1, node2): | 132 def base(ui, repo, node1, node2): |
133 """Output common ancestor information""" | 133 """output common ancestor information""" |
134 node1 = repo.lookup(node1) | 134 node1 = repo.lookup(node1) |
135 node2 = repo.lookup(node2) | 135 node2 = repo.lookup(node2) |
136 n = repo.changelog.ancestor(node1, node2) | 136 n = repo.changelog.ancestor(node1, node2) |
137 ui.write(short(n) + "\n") | 137 ui.write(short(n) + "\n") |
138 | 138 |
280 if maxnr and count >= maxnr: | 280 if maxnr and count >= maxnr: |
281 break | 281 break |
282 count += 1 | 282 count += 1 |
283 | 283 |
284 def revparse(ui, repo, *revs, **opts): | 284 def revparse(ui, repo, *revs, **opts): |
285 """Parse given revisions""" | 285 """parse given revisions""" |
286 def revstr(rev): | 286 def revstr(rev): |
287 if rev == 'HEAD': | 287 if rev == 'HEAD': |
288 rev = 'tip' | 288 rev = 'tip' |
289 return revlog.hex(repo.lookup(rev)) | 289 return revlog.hex(repo.lookup(rev)) |
290 | 290 |