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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Jun 18 07:34:50 EDT 2019


pulkit added a comment.


  I think adding a `--force` flag to `hg commit` is not a nice option. force can mean a lot of things and here except in closing the non-head changeset, it is no-op.
  
  For example, I am in middle of a rebase, tried to commit, it says rebase in progress. I see there is a --force flag, I try to use that to force the commit.
  
  We can do one of the following:
  
  1. maybe a more specific flag name like `--allow-close-branch` or something like that
  2. a config option instead of a flag name

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6490/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6490

To: khanchi97, #hg-reviewers, mharbison72
Cc: pulkit, mharbison72, mercurial-devel


More information about the Mercurial-devel mailing list