##// END OF EJS Templates
heads: modernize documentation (issue3992)...
Matt Mackall -
r19469:bf6bc468 stable
parent child Browse files
Show More
@@ -3320,19 +3320,17 b' def grep(ui, repo, pattern, *pats, **opt'
3320 ] + templateopts,
3320 ] + templateopts,
3321 _('[-ct] [-r STARTREV] [REV]...'))
3321 _('[-ct] [-r STARTREV] [REV]...'))
3322 def heads(ui, repo, *branchrevs, **opts):
3322 def heads(ui, repo, *branchrevs, **opts):
3323 """show current repository heads or show branch heads
3323 """show branch heads
3324
3324
3325 With no arguments, show all repository branch heads.
3325 With no arguments, show all open branch heads in the repository.
3326
3326 Branch heads are changesets that have no child changesets on the
3327 Repository "heads" are changesets with no child changesets. They are
3327 same branch. They are where development generally takes place and
3328 where development generally takes place and are the usual targets
3328 are the usual targets for update and merge operations.
3329 for update and merge operations. Branch heads are changesets that have
3329
3330 no child changeset on the same branch.
3330 If one or more REVs are given, only open branch heads on the
3331
3331 branches associated with the specified changesets are shown. This
3332 If one or more REVs are given, only branch heads on the branches
3332 means that you can use :hg:`heads .` to see the heads on the
3333 associated with the specified changesets are shown. This means
3333 currently checked-out branch.
3334 that you can use :hg:`heads foo` to see the heads on a branch
3335 named ``foo``.
3336
3334
3337 If -c/--closed is specified, also show branch heads marked closed
3335 If -c/--closed is specified, also show branch heads marked closed
3338 (see :hg:`commit --close-branch`).
3336 (see :hg:`commit --close-branch`).
@@ -3341,7 +3339,7 b' def heads(ui, repo, *branchrevs, **opts)'
3341 STARTREV will be displayed.
3339 STARTREV will be displayed.
3342
3340
3343 If -t/--topo is specified, named branch mechanics will be ignored and only
3341 If -t/--topo is specified, named branch mechanics will be ignored and only
3344 changesets without children will be shown.
3342 topological heads (changesets with no children) will be shown.
3345
3343
3346 Returns 0 if matching heads are found, 1 if not.
3344 Returns 0 if matching heads are found, 1 if not.
3347 """
3345 """
@@ -303,7 +303,7 b' Testing -h/--help:'
303 forget forget the specified files on the next commit
303 forget forget the specified files on the next commit
304 graft copy changes from other branches onto the current branch
304 graft copy changes from other branches onto the current branch
305 grep search for a pattern in specified files and revisions
305 grep search for a pattern in specified files and revisions
306 heads show current repository heads or show branch heads
306 heads show branch heads
307 help show help for a given topic or a help overview
307 help show help for a given topic or a help overview
308 identify identify the working copy or specified revision
308 identify identify the working copy or specified revision
309 import import an ordered set of patches
309 import import an ordered set of patches
@@ -385,7 +385,7 b' Testing -h/--help:'
385 forget forget the specified files on the next commit
385 forget forget the specified files on the next commit
386 graft copy changes from other branches onto the current branch
386 graft copy changes from other branches onto the current branch
387 grep search for a pattern in specified files and revisions
387 grep search for a pattern in specified files and revisions
388 heads show current repository heads or show branch heads
388 heads show branch heads
389 help show help for a given topic or a help overview
389 help show help for a given topic or a help overview
390 identify identify the working copy or specified revision
390 identify identify the working copy or specified revision
391 import import an ordered set of patches
391 import import an ordered set of patches
@@ -68,7 +68,7 b' Short help:'
68 forget forget the specified files on the next commit
68 forget forget the specified files on the next commit
69 graft copy changes from other branches onto the current branch
69 graft copy changes from other branches onto the current branch
70 grep search for a pattern in specified files and revisions
70 grep search for a pattern in specified files and revisions
71 heads show current repository heads or show branch heads
71 heads show branch heads
72 help show help for a given topic or a help overview
72 help show help for a given topic or a help overview
73 identify identify the working copy or specified revision
73 identify identify the working copy or specified revision
74 import import an ordered set of patches
74 import import an ordered set of patches
@@ -144,7 +144,7 b' Short help:'
144 forget forget the specified files on the next commit
144 forget forget the specified files on the next commit
145 graft copy changes from other branches onto the current branch
145 graft copy changes from other branches onto the current branch
146 grep search for a pattern in specified files and revisions
146 grep search for a pattern in specified files and revisions
147 heads show current repository heads or show branch heads
147 heads show branch heads
148 help show help for a given topic or a help overview
148 help show help for a given topic or a help overview
149 identify identify the working copy or specified revision
149 identify identify the working copy or specified revision
150 import import an ordered set of patches
150 import import an ordered set of patches
@@ -629,7 +629,7 b' Test that default list of commands omits'
629 forget forget the specified files on the next commit
629 forget forget the specified files on the next commit
630 graft copy changes from other branches onto the current branch
630 graft copy changes from other branches onto the current branch
631 grep search for a pattern in specified files and revisions
631 grep search for a pattern in specified files and revisions
632 heads show current repository heads or show branch heads
632 heads show branch heads
633 help show help for a given topic or a help overview
633 help show help for a given topic or a help overview
634 identify identify the working copy or specified revision
634 identify identify the working copy or specified revision
635 import import an ordered set of patches
635 import import an ordered set of patches
@@ -1276,7 +1276,7 b' Dish up an empty repo; serve it cold.'
1276 heads
1276 heads
1277 </a>
1277 </a>
1278 </td><td>
1278 </td><td>
1279 show current repository heads or show branch heads
1279 show branch heads
1280 </td></tr>
1280 </td></tr>
1281 <tr><td>
1281 <tr><td>
1282 <a href="/help/help">
1282 <a href="/help/help">
General Comments 0
You need to be logged in to leave comments. Login now