Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG04d1f17f49e7: dirstate-v2: Write .hg/dirstate back to disk on directory cache changes
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
rust/hg-core/src/dirstate_tree/status.rs | ||
---|---|---|
83 | This does not seem semantically correct. The docstring for dirty says that it's any change to the dirstate that should be written, but this only concerns the directories cache. |
rust/hg-core/src/dirstate_tree/status.rs | ||
---|---|---|
83 | Yes, and we want new cache entries to be written to disk? |
rust/hg-core/src/dirstate_tree/status.rs | ||
---|---|---|
83 | Right, but the docstring for dirty implies that it covers any part of the dirstate that needs serializing to disk, while it is only for the cache. |
rust/hg-core/src/dirstate_tree/status.rs | ||
---|---|---|
83 | I was completely confused, we don't update the dirstate for anything other than caches outside of a commit. Sorry for the noise. :) |
This does not seem semantically correct. The docstring for dirty says that it's any change to the dirstate that should be written, but this only concerns the directories cache.