D10909: status: Extend read_dir caching to directories with ignored files

2021-06-24 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY See code comments REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10909 AFFECTED FILES

D10907: dirstate-v2: Drop cached read_dir results after .hgignore changes

2021-06-24 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Soon we’ll want the status algorithm to be able to skip `std::fs::read_dir` in more cases, notabling when listing unknown files but not ignored files.

D10908: status: Move some `is_ignored` computation earlier

2021-06-24 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This refactor should make have no observable behavior difference, it will make an upcoming changeset easier. REPOSITORY rHG Mercurial BRANCH default

D10906: rhg: fallback if tweakdefaults or statuscopies is enabled with status

2021-06-24 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY `rhg status` is experimental right now and does not support all functionalities. While the long term target is to implement them, for now we add a fallback to

D10905: stream: double check that self.vfs is *not* in the vfsmap

2021-06-24 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The stream clone logic allows for writing any content to any file under various vfs. This is *not* suitable for *vfs*, since writing in `.hg/` directly allow