This is an archive of the discontinued Mercurial Phabricator instance.

dirstate: add a `update_file` function
ClosedPublic

Authored by marmoute on Jul 11 2021, 7:38 AM.

Details

Summary

This function is the other side of the set_tracked/set_untracked API revamp.
It is to be used when the dirstate is changing its parents during and update or
a merge. It states all the information we know about the file so that the
dirstate can update its internal data.

Unlike the set_tracked/set_untracked it has not regards for the information
previously tracked in the tristate.

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.

Event Timeline

marmoute created this revision.Jul 11 2021, 7:38 AM
Alphare added inline comments.
mercurial/dirstate.py
516

There seems to be no explanation for this in the commit message.

570

Think of how nice this would look in a match clause. ;)

marmoute planned changes to this revision.Jul 12 2021, 5:54 AM
marmoute added inline comments.
mercurial/dirstate.py
516

This shouldn't be dropped actually.

570

😇

marmoute updated this revision to Diff 29206.Jul 12 2021, 5:56 AM
Alphare requested changes to this revision.Jul 12 2021, 5:57 AM
This revision now requires changes to proceed.Jul 12 2021, 5:57 AM
Alphare accepted this revision.Jul 15 2021, 10:23 AM
This revision is now accepted and ready to land.Jul 15 2021, 10:23 AM
This revision was automatically updated to reflect the committed changes.