comparison mercurial/commands.py @ 8992:ff7d899a7a71

help: add more pointers to commit --close-branch
author Matt Mackall <mpm@selenic.com>
date Wed, 01 Jul 2009 00:35:59 -0500
parents 7e0b31dfc66f
children 7b19cda0fa10
comparison
equal deleted inserted replaced
8991:7e0b31dfc66f 8992:ff7d899a7a71
417 417
418 Use -C/--clean to reset the working directory branch to that of 418 Use -C/--clean to reset the working directory branch to that of
419 the parent of the working directory, negating a previous branch 419 the parent of the working directory, negating a previous branch
420 change. 420 change.
421 421
422 Use the command 'hg update' to switch to an existing branch. 422 Use the command 'hg update' to switch to an existing branch. Use
423 'hg commit --close-branch' to mark this branch as closed.
423 """ 424 """
424 425
425 if opts.get('clean'): 426 if opts.get('clean'):
426 label = repo[None].parents()[0].branch() 427 label = repo[None].parents()[0].branch()
427 repo.dirstate.setbranch(label) 428 repo.dirstate.setbranch(label)
1374 1375
1375 Branch heads are revisions on a given named branch that do not have 1376 Branch heads are revisions on a given named branch that do not have
1376 any descendants on the same branch. A branch head could be a true head 1377 any descendants on the same branch. A branch head could be a true head
1377 or it could be the last changeset on a branch before a new branch 1378 or it could be the last changeset on a branch before a new branch
1378 was created. If none of the branch heads are true heads, the branch 1379 was created. If none of the branch heads are true heads, the branch
1379 is considered inactive. 1380 is considered inactive. If -c/--closed is specified, also show branch
1381 heads marked closed (see hg commit --close-branch).
1380 1382
1381 If STARTREV is specified only those heads (or branch heads) that 1383 If STARTREV is specified only those heads (or branch heads) that
1382 are descendants of STARTREV will be displayed. 1384 are descendants of STARTREV will be displayed.
1383 """ 1385 """
1384 if opts.get('rev'): 1386 if opts.get('rev'):