[Commented On] D12202: status: fix hg status race against file deletion
aalekseyev (Arseniy Alekseyev)
phabricator at mercurial-scm.org
Thu Feb 17 20:58:30 UTC 2022
aalekseyev added a comment.
This is a bug that leads to `hg status` wrongly saying that the whole directory is deleted even though only some of the files in it was deleted (potentially one of the ignored files, in which case the status could even be clean).
I tested it using the following command:
(mkdir r; cd r; hg init; echo 'd/x*' > .hgignore; mkdir d; touch d/x{1..10000}; hg status --config 'extensions.sparse=!' & rm d/*; wait; cd ..; rm -r r)
Without this patch, this prints "d: No such file or directory". With this patch it does not.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12202/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12202
To: aalekseyev, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220217/44b17f92/attachment-0002.html>
More information about the Mercurial-patches
mailing list