Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 18 Jul 2021 22:50:02 +0200] rev 47733
mq: replace `normallookup` call with newer API
This align MQ behavior with what what `scmutil.movedirstate` does. (it should
probably use `scmutil.movedirstate` itself.
Differential Revision: https://phab.mercurial-scm.org/D11175
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 03:52:54 +0200] rev 47732
revert: use `set_possibly_dirty` instead of `normallookup`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11174
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 14:02:58 +0200] rev 47731
dirstate: enforce `possibly_dirty` in `set_tracked`
There is some usecase (like `hg revert`) that requires more agressive
`possibly_dirty` setting. So we take a safe path and enforce it in one of the
main `normallookup` replacement.
Differential Revision: https://phab.mercurial-scm.org/D11173
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 01:17:56 +0200] rev 47730
record: use `update_file` instead of `normallookup`
We are cheating a bit to enforce we are in a pending change context. This will
have to be cleaned up later.
The end goal is reached, we are now using the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11172
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 05:43:43 +0200] rev 47729
copy: use `set_tracked` instead of `normallookup` in `dirstatecopy`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11171
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 01:18:23 +0200] rev 47728
amend: use `update_file` instead of `normallookup`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11170
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 05:45:22 +0200] rev 47727
mergestate: use `update_file` to handle for `ACTION_EXEC`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11169
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 05:44:57 +0200] rev 47726
mergestate: use `update_file` to handle for `ACTION_ADD_MODIFIED`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11168
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 05:47:54 +0200] rev 47725
largefile: use `update_file` for `synclfdirstate` "m" case
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11167
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 05:47:33 +0200] rev 47724
largefile: use `update_file` for `synclfdirstate` "n" case
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11166
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 02:44:11 +0200] rev 47723
largefile: replace the `normallookup` call when creating a new lfdirstate
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11165
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 05:46:16 +0200] rev 47722
largefile: use `update_file` instead of `normallookup` in `updatelfiles`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11164
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 18 Jul 2021 23:43:08 +0200] rev 47721
largefile: use `set_possibly_dirty` instead of `normallookup`
Differential Revision: https://phab.mercurial-scm.org/D11163
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 18 Jul 2021 23:42:22 +0200] rev 47720
dirstate: add a `set_possibly_dirty` method
This method will be able to replace some usage of `normallookup` in the future.
Differential Revision: https://phab.mercurial-scm.org/D11162
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 00:29:36 +0200] rev 47719
dirstate: deprecate the `normal` method in all cases
All code have been migrated to the new APIs.
Differential Revision: https://phab.mercurial-scm.org/D11161
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 06:44:08 +0200] rev 47718
test: use `set_tracked` in `test-context`
This is apparently the last user of the old API.
Differential Revision: https://phab.mercurial-scm.org/D11160
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 18 Jul 2021 22:49:26 +0200] rev 47717
mq: replace usage of `normal` with newer API
Differential Revision: https://phab.mercurial-scm.org/D11159
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 02:46:09 +0200] rev 47716
largefile: use `update_file` instead of `normal` in `synclfdirstate`
This is the newer, more semantic API.
This was the last call to `normal` in largefile.
Differential Revision: https://phab.mercurial-scm.org/D11158
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 02:40:51 +0200] rev 47715
largefile: use `set_clean` instead of `normal` in `repo.status`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11157
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 02:39:35 +0200] rev 47714
largefile: use `set_clean` instead of `normal` in `lfdirstatestatus`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11156
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 02:39:01 +0200] rev 47713
largefile: use `update_file` instead of `normal` in `updatelfiles`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11155
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 02:38:40 +0200] rev 47712
largefile: respect the `normal` signature
The `parentfiledata` parameter was missing, we throw it away because I am not sure what to do with it in the largefile case.
Differential Revision: https://phab.mercurial-scm.org/D11154
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 02:05:24 +0200] rev 47711
keyword: use `set_clean` instead of `normal`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11153
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 01:58:34 +0200] rev 47710
sparse: use `update_file` instead of `normal` in `refreshwdir`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11152
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 01:58:24 +0200] rev 47709
sparse: use `update_file` instead of `normal` during `applyupdates`
This is the newer, more semantic API.
(more content end up "nonnormal", see previous commit)
Differential Revision: https://phab.mercurial-scm.org/D11151
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 04:26:06 +0200] rev 47708
sparse: apply update with in a `parentchange` context
We are changing the reference so we should be within such context manager.
This seems make the actual dirstate content a bit flaky with content being
sometime ambigous (but maybe it was flaky before?)
So I increased the matching.
Differential Revision: https://phab.mercurial-scm.org/D11150
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 03:52:20 +0200] rev 47707
revert: use `set_clean` instead of `normal`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11149
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 03:15:57 +0200] rev 47706
context: use `update_file` instead of `normal` in `markcommitted`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11148
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 01:44:24 +0200] rev 47705
context: use new API instead of `normal` during fixup post status
We use `set_clean` or `update_file` depending of if we are in the middle of an
update or not.
Differential Revision: https://phab.mercurial-scm.org/D11147
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 19 Jul 2021 00:47:59 +0200] rev 47704
dirstate: introduce a `set_clean` method
This will provide a good alternative to `normal` call with a narrower semantic.
Differential Revision: https://phab.mercurial-scm.org/D11146