HomePhabricator

commit: add --force-close-branch flag to close a non-head changeset

Authored by khanchi97.

Description

commit: add --force-close-branch flag to close a non-head changeset

While closing branch from a changeset which is not a branch head
current implementation abort this action in every case but, there
can be the situations where the changeset is not a local head but
could be a remote head. This patch adds the functionality to bypass
the "abort: can only close branch heads" by introducing
--force-close-branch flag.

Test case changes demonstrate the new functionality added.

Differential Revision: https://phab.mercurial-scm.org/D6490

Details

Committed
khanchi97May 18 2019, 6:14 AM
Differential Revision
D6490: commit: add --force-close-branch flag to close a non-head changeset
Parents
rHG3de4f17f4824: shelve: move shelve extension to core
Branches
Unknown
Tags
Unknown