D6882: histedit: sniff-test for untracked file conflicts before prompting for rules

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Sep 25 14:03:55 EDT 2019


martinvonz added inline comments.

INLINE COMMENTS

> histedit.py:1974-1993
> +    wctx = repo[None]
> +    # Please don't ask me why `ancestors` is this value. I figured it
> +    # out with print-debugging, not by actually understanding what the
> +    # merge code is doing. :(
> +    ancs = [repo['.']]
> +    # Sniff-test to make sure we won't collide with untracked files in
> +    # the working directory. If we don't do this, we can get a

Would it be enough to check if any untracked file is in any of those commits? That should be a lot simpler and cheaper.

REPOSITORY
  rHG Mercurial

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

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

To: durin42, #hg-reviewers
Cc: martinvonz, mercurial-devel


More information about the Mercurial-devel mailing list