equal
deleted
inserted
replaced
715 |
715 |
716 See :hg:`help dates` for a list of formats valid for -d/--date. |
716 See :hg:`help dates` for a list of formats valid for -d/--date. |
717 """ |
717 """ |
718 extra = {} |
718 extra = {} |
719 if opts.get('close_branch'): |
719 if opts.get('close_branch'): |
|
720 if repo['.'].node() not in repo.branchheads(): |
|
721 # The topo heads set is included in the branch heads set of the |
|
722 # current branch, so it's sufficient to test branchheads |
|
723 raise util.Abort(_('can only close branch heads')) |
720 extra['close'] = 1 |
724 extra['close'] = 1 |
721 e = cmdutil.commiteditor |
725 e = cmdutil.commiteditor |
722 if opts.get('force_editor'): |
726 if opts.get('force_editor'): |
723 e = cmdutil.commitforceeditor |
727 e = cmdutil.commitforceeditor |
724 |
728 |