Mercurial > public > mercurial-scm > hg-stable
comparison rust/hg-core/src/utils.rs @ 49703:dbe09fb038fc stable
rhg: remember the inode of .hg/dirstate
This allows us to detect changes of `.hg/dirstate`, which is either the
full dirstate (in dirstate-v1) or the docket file (v2) without relying on
data inside the file. It only works on UNIX systems.
This fixes a race condition for dirstate-v1 (as demonstrated by
the test changes) and adds a confortable layer of sanity for dirstate-v2.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 01 Mar 2023 16:48:09 +0100 |
parents | 8e0d823ef182 |
children | a6b8b1ab9116 |
comparison
equal
deleted
inserted
replaced
49702:07d030b38097 | 49703:dbe09fb038fc |
---|