[Request] [+ ] D11433: dirstatE: stop using `_normallookup` in the adddrop extension
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Sep 16 14:44:37 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
That extensions is just trying to produce "corrupted" dirstate.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11433
AFFECTED FILES
tests/test-rebuildstate.t
CHANGE DETAILS
diff --git a/tests/test-rebuildstate.t b/tests/test-rebuildstate.t
--- a/tests/test-rebuildstate.t
+++ b/tests/test-rebuildstate.t
@@ -17,7 +17,13 @@
> try:
> for file in pats:
> if opts.get('normal_lookup'):
- > repo.dirstate._normallookup(file)
+ > with repo.dirstate.parentchange():
+ > repo.dirstate.update_file(
+ > file,
+ > p1_tracked=True,
+ > wc_tracked=True,
+ > possibly_dirty=True,
+ > )
> else:
> repo.dirstate._map.dropfile(file)
> repo.dirstate._dirty = True
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210916/7513162f/attachment.html>
More information about the Mercurial-patches
mailing list