D6607: merge: disallow merge abort in case of an unfinished operation(issue6160)

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Jul 8 11:49:02 EDT 2019


pulkit added inline comments.

INLINE COMMENTS

> commands.py:4019
>      if abort:
> +        for state in statemod._unfinishedstates:
> +            if state.isunfinished(repo) and state._opname != 'merge':

We are performing the same loop in https://phab.mercurial-scm.org/D6566. How about having a utility function which will return the unfinished state, something like `getunfinishedstate`

REPOSITORY
  rHG Mercurial

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

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

To: taapas1128, #hg-reviewers
Cc: pulkit, mercurial-devel


More information about the Mercurial-devel mailing list