D11201: walk: no longer ignore revlogs of files starting with `undo.` (issue6542)

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Changeset 0b569c75d180 introduced new code in store.walk to filter out undo files

D11202: upgrade: avoid a traceback in case of unrecognized revlog

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Without this, in case of revlog name not matching any know pattern we would get a traceback. Raising a clear error seems simpler. REPOSITORY rHG Mercurial

[Bug 6543] New: Does 123.hp.com/setup site provide authentic guides and tutorials for my new HP printer?

2021-07-19 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=6543 Bug ID: 6543 Summary: Does 123.hp.com/setup site provide authentic guides and tutorials for my new HP printer? Product: Mercurial Version: default branch Hardware: PC

Failed pipeline for branch/default | mercurial-devel | 764d3e7c

2021-07-19 Thread Heptapod
Pipeline #24953 has failed! Project: mercurial-devel ( https://foss.heptapod.net/octobus/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/octobus/mercurial-devel/-/commits/branch/default ) Commit: 764d3e7c ( https://foss.heptapod.net/octobus/mercurial-devel/-/commit/764d3e

Re: Subject: 5.9 freeze, Windows, regression-fixes and Python 2 drop

2021-07-19 Thread Pierre-Yves David
On 7/19/21 7:23 PM, Pulkit Goyal wrote: The freeze idea sounds good to me since we haven't really spent much time fixing the remaining issues related to py3 support and other long-standing bugs. On Mon, Jul 19, 2021 at 12:02 PM Pierre-Yves David wrote: There is a silly, but critical issue tha

Re: Subject: 5.9 freeze, Windows, regression-fixes and Python 2 drop

2021-07-19 Thread Pulkit Goyal
The freeze idea sounds good to me since we haven't really spent much time fixing the remaining issues related to py3 support and other long-standing bugs. On Mon, Jul 19, 2021 at 12:02 PM Pierre-Yves David wrote: > > There is a silly, but critical issue that we need¹ to fix before cutting > a RC

D11198: mq: replace `add` call with newer API

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11198 AFFECTED FILES hgext/mq.py CHANGE DETAILS diff --git a/hgext/mq.py b/hgext

D11193: mq: replace `drop` call with newer API

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11193 AFFECTED FILES hgext/mq.py CHANGE DETAILS diff --git a/hgext/mq.py b/hgext

D11199: dirstate: deprecate the `add` method

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All users have been migrated. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11199 AFFECTED FILES mercurial/d

D11200: relnotes: document the change in the dirstate API

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11200 AFFECTED FILES relnotes/next CHANGE DETAILS diff --git a/relnotes/next b/r

D11196: largefile: use `update_file` instead of `add` in `mergerecordupdates`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11196 AFFECTED FILES hge

D11197: largefile: use `updatefile` instead of `add` in `synclfdirstate`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11197 AFFECTED FILES hge

D11195: dirstate: deprecate the `drop` method

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All users have been migrated. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11195 AFFECTED FILES mercurial/d

D11188: amend: use `update_file` instead of `drop`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11188 AFFECTED FILES mer

D11192: largefile: use `update_file` instead of `drop` during `rollback`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11192 AFFECTED FILES hge

D11194: narrow: stop using `drop` in the `updateworkingcopy`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Let us use the new API instead. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11194 AFFECTED FILES mercurial

D11187: context: use `update_file` instead of `drop` in `markcommitted`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11187 AFFECTED FILES mer

D11191: largefile: use `update_file` instead of `drop` in `synclfdirstate`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11191 AFFECTED FILES hge

D11190: sparse: use `update_file` instead of `drop`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11190 AFFECTED FILES mer

D11189: sparse: use `update_file` instead of `drop` in `refreshwdir`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11189 AFFECTED FILES mer

D11185: mq: drop the use of `dirstate.merged

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Since mq does not work on merge, we do not need this. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11185 AFFE

D11186: dirstate: deprecate the `merge` method in all cases

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All code have been migrated to the new APIs. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11186 AFFECTED FILE

D11184: dirstate: deprecate the `otherparent` method in all cases

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All code have been migrated to the new APIs. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11184 AFFECTED FILE

D11183: dirstate: deprecate the `normallookup` method in all cases

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All code have been migrated to the new APIs. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11183 AFFECTED FILE

D11182: narrow: stop using `normallookup` during a test

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: durin42. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11182 AFFECTED FILES tests/test-narrow-expanddir

D11175: mq: replace `normallookup` call with newer API

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This align MQ behavior with what what `scmutil.movedirstate` does. (it should probably use `scmutil.movedirstate` itself. REPOSITORY rHG Mercurial BRANCH

D11180: test: use the internal `_normallookup` in `test-rebuildstate.t`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is a low level test doing low level manipulation. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11180 AFF

D11181: narrow: use `update_file` instead of `normallookup` after update

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11181 AFFECTED FILES mer

D11174: revert: use `set_possibly_dirty` instead of `normal_lookup`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11174 AFFECTED FILES mer

D11179: sparse: use `update_file` instead of `normallookup` in refreshwdir

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11179 AFFECTED FILES mer

D11178: keywork: use `update_file_p1` instead of `normallookup`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11178 AFFECTED FILES hge

D11172: record: use `update_file` instead of `normallookup`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY 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 n

D11177: fix: use `set_possibly_dirty` instead of `normallookup`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11177 AFFECTED FILES hge

D11176: eol: use `set_possibly_dirty` instead of `normallookup`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11176 AFFECTED FILES hge

D11170: amend: use `update_file` instead of `normallookup`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11170 AFFECTED FILES mer

D11173: dirstate: enforce `possibly_dirty` in `set_tracked`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY 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 `norm

D11171: copy: use `update_file` instead of `normallookup` in `dirstatecopy`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11171 AFFECTED FILES mer

D11169: mergestate: use `update_file` to handle `for ACTION_EXEC`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11169 AFFECTED FILES mer

D11168: mergestate: use `update_file` to handle `for ACTION_ADD_MODIFIED`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11168 AFFECTED FILES mer

D11167: largefile: use `update_file` for `synclfdirstate` "m" case

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11167 AFFECTED FILES hge

D11166: largefile: use `update_file` for `synclfdirstate` "n" case

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11166 AFFECTED FILES hge

D11163: largefile: use `set_possibly_dirty` instead of `normallookup`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11163 AFFECTED FILES hgext/largefiles/overrides.py CHANGE DETAILS diff --git a/h

D11165: largefile: replace the `normallookup` call when creating a new lfdirstate

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11165 AFFECTED FILES hge

D11162: dirstate: add a `set_possibly_dirty` method

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This method will be able to replace some usage of `normallookup` in the future. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mer

D11164: largefile: use `update_file` instead of `normallookup` in `updatelfiles`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11164 AFFECTED FILES hge

Failed pipeline for branch/default | mercurial-devel | 530709ac

2021-07-19 Thread Heptapod
Pipeline #24929 has failed! Project: mercurial-devel ( https://foss.heptapod.net/octobus/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/octobus/mercurial-devel/-/commits/branch/default ) Commit: 530709ac ( https://foss.heptapod.net/octobus/mercurial-devel/-/commit/530709

mercurial@47596: 31 new changesets

2021-07-19 Thread Mercurial Commits
31 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/3df817387ea3 changeset: 47566:3df817387ea3 user:Augie Fackler date:Thu Jul 08 17:09:57 2021 -0400 summary: parsers: move DirstateItem to attr.s https://www.mercurial-scm.org/repo/hg/rev/7a15dea6d303 c

D11158: largefile: use `update_file` instead of `normal` in `synclfdirstate`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. This was the last call to `normal` in largefile. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https

D11156: largefile: use `set_clean` instead of `normal` in `lfdirstatestatus`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11156 AFFECTED FILES hge

D11160: test: use `set_traced` in `test-context`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is apparently the last user of the old API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11160 AFFECTED

D11159: mq: replace usage of `normal` with newer API

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11159 AFFECTED FILES hgext/mq.py CHANGE DETAILS diff --git a/hgext/mq.py b/hgext

D11161: dirstate: deprecate the `normal` method in all cases

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All code have been migrated to the new APIs. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11161 AFFECTED FILE

D11149: revert: use `set_clean` instead of `normal`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11149 AFFECTED FILES mer

D11157: largefile: use `set_clean` instead of `normal` in `repo.status`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11157 AFFECTED FILES hge

D11155: largefile: use `update_file` instead of `normal` in `updatelfiles`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11155 AFFECTED FILES hge

D11153: keywork: use `set_clean` instead of `normal`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11153 AFFECTED FILES hge

D11154: largefile: respect the `normal` signature

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The `parentfiledata` parameter was missing, we throw it away because I am not sure what to do with it in the largefile case. REPOSITORY rHG Mercurial BRANCH

D11152: sparse: use `update_file` instead of `normal` in `refreshwdir`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11152 AFFECTED FILES mer

D11151: sparse: use `update_file` instead of `normal` during `applyupdates`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. (more content end up "nonnormal", see previous commit) REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D11148: context: use `update_file` instead of `normal` in `markcommitted`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11148 AFFECTED FILES mer

D11150: sparse: apply update with in a `parentchange` context

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY 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 somet

D11147: context: use new API instead of `normal` during fixup post status

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We use `set_clean` or `update_file` depending of if we are in the middle of an update or not. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL h

D11146: dirstate: introduce a `set_clean` method

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This will provide a good alternative to `normal` call with a narrower semantic. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mer

D11145: largefile: use `update_file` instead of `normal`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11145 AFFECTED FILES hge

D11144: largefile: adjust the dirstate post update within a `parentchange` context

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is doing an update, so this seems more appropriate. No other change have been made, but the next changeset will :-) REPOSITORY rHG Mercurial BRANCH de

D11139: mq: use `update_file_p1` instead of `remove` when adjusting dirstate

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the new API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11139 AFFECTED FILES hgext/mq.py CHANGE

D11143: dirstate: deprecate `dirstate.remove` in all cases

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This will make sure that code will use the newer, more semantic API sooner than later. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https:/

D11134: dirstate-map: move most of `dirstate.update_file` logic in the dsmap

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY A new `reset_state` method is introduced to deal with most of that logic. This move things one layer lower, but the ultimate goal is to deal with most of this

D11140: largefile: use `update_file` instead of `remove` in `mergerecordupdates`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11140 AFFECTED FILES hge

D11142: largefile: use `update_file` instead of `remove` in `synclfdirstate`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11142 AFFECTED FILES hge

D11141: largefile: rearrange conditionnal in `synclfdirstate`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We can liquidate the special case early, so do we. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11141 AFFECTE

D11135: dirstate: rename `update_file_reference` to `update_file_p1`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is a bit clearer on the intended usage of the function. (but still not great) REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.

D11138: dirstate: properly update `_lastnormaltime` in `update_file_p1`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This was previously overlooked. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11138 AFFECTED FILES mercurial

D11137: dirstate: properly update `_lastnormaltime` in `update_file`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This was previously overlooked. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11137 AFFECTED FILES mercurial

D11136: dirstate: use `reset_state` in `update_file_p1`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Going through the same API is more consistent and allow us to push implementation lower down the call stack. REPOSITORY rHG Mercurial BRANCH default REVI

D11133: dirstate: replace `update_parent_file_data` with simpler `update_parent` call

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This make the dirstate API simpler. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11133 AFFECTED FILES mercu

D11132: dirstate: factor out the part retrieve "filedata" out of `normal`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We will need them elsewhere. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11132 AFFECTED FILES mercurial/di

D11131: dirstate-map: factor out the change to _dirs and _alldirs on removing

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This logic is complicated enough to deserves its own function. So it now does. This will make it easier to reuse that logic in later changeset. REPOSITORY

D11130: dirstate-map: factor out the change to _dirs and _alldirs on dropping

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This logic is complicated enough to deserves its own function. So it now does. This will make it easier to reuse that logic in later changeset. REPOSITORY

D11128: dirstate: replace a dead conditional branch with an assert in `update_file`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is a case we never meet, so lets trim it away to simplify the code before more changes. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL ht

D11129: dirstate-map: factor out the change to _dirs and _alldirs on adding

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This logic is complicated enough to deserves its own function. So it now does. This will make it easier to reuse that logic in later changeset. REPOSITORY

D11126: dirstate: drop a duplicated assert

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This very case is checked in 3 line above that one. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11126 AFFECT

D11127: dirstate-map: do not use `size` to gate copy dropping during remove_file

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This get us close to moving the block right above withing the DirstateItem object. Doing so will help us getting rid of magic constant at the dirstatemap leve

D11124: dirstate-item: introduce a `dm_otherparent` property

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY See inline documentation for details. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11124 AFFECTED FILES mer

D11125: dirstate: drop duplicated check

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is covered by the `@requires_parents_change` decorator that this function use. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab

D11123: dirstate-item: introduce a `dm_nonnormal` property

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY See inline documentation for details. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11123 AFFECTED FILES mer

D11122: dirstate: add a `set_possibly_dirty` in `fakedirstatewritetime`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11122 AFFECTED FILES tests/fakedirstatewritetime.py CHANGE DETAILS diff --git a/

D11119: dirstate-item: add a `set_possibly_dirty` method

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY See inline documentation for details. The pushes the AMBIGUOUS_TIME implementation further down the line within the DirstateItem only. When this cleanup is

D11121: dirstatemap: use `set_possibly_dirty` in `clearambiguoustimes`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY lets put this new method to use REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11121 AFFECTED FILES mercurial

D11120: dirstate-item: use `set_possibly_dirty` in `pure.pack_dirstate`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Lets make use of the new function. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11120 AFFECTED FILES mercur

D11118: dirstate-item: add a `from_v1_data` constructor

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This class method is dedicated to building a DirstateItem from the data available in the "dirstate-v1" format. Since that format is frozen, this constructor w

D11117: dirstate-item: use an explicit __init__ function instead of the attrs one

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY For now, this is not doing anything special, however we plan to make it different in the future. So we start simple. REPOSITORY rHG Mercurial BRANCH defaul

D11116: dirstate: deprecated `drop` outside of `update/merge`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All core users have been migrated. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D6 AFFECTED FILES mercur

D11115: dirstate: deprecated `remove` outside of `update/merge`

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All core users have been migrated. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D5 AFFECTED FILES mercur

D11114: dirstate: deprecate the `add` method outside of update/merge context

2021-07-19 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY All core users have been updated. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D4 AFFECTED FILES mercuri