This is an archive of the discontinued Mercurial Phabricator instance.

mergestate: introduce a new ACTION_KEEP_NEW
ClosedPublic

Authored by pulkit on Sep 9 2020, 9:43 AM.

Details

Summary

ACTION_KEEP is overloaded and it's hard to figure out how we end up with this
KEEP, what was the state of things.

In a previous patch, we introduced ACTION_KEEP_ABSENT which represents files
which are kept absent in the working directory.

There is another special case where we keep the file when it's not present on
both ancestor and remote side. We introduce a dedicated action for that.

The goal is to use these information to make bid merge smarter.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.