Mercurial > hg
comparison mercurial/mail.py @ 50226:8fcd5302243a stable
rhg: fix race when an ambiguous file is deleted on disk
There are two places in the status code where we handle files whose status
we are unsure of based off of metadata alone: this one is the first one to
actually disambiguate, and the second one is later in the code (but updated
in the previous commit) for files that are actually clean to update the
dirstate. Since there is a chance that the contents have changed between
those two moments, we need to stat the files again, since re-using the old
stat could lie about the clean state of the file.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 28 Feb 2023 16:19:21 +0100 |
parents | 1d6c6ad645e1 |
children | 1c7453f2bb57 |
comparison
equal
deleted
inserted
replaced
50225:53ca3e3bc013 | 50226:8fcd5302243a |
---|