This is the new dirstate API that has already been moved to in Python.
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG0813b32a51fc: rust-dirstatemap: add `set_clean` method
rHGd4a96f211898: rust-dirstatemap: add `set_clean` method
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
looks overall good, but I have a small question.
rust/hg-core/src/dirstate_tree/dirstate_map.rs | ||
---|---|---|
782 | Why can we have an empty closure here ? |
rust/hg-core/src/dirstate_tree/dirstate_map.rs | ||
---|---|---|
782 | set_clean can't be called on a fully untracked node (because of the check in the public function), but could be theoretically be called on a removed file, which would change the tracked_descendants_count variable. It just happens that this does not happen in the code, so I probably forgot to check this. I'll update this, thanks. |
rust/hg-core/src/dirstate_tree/dirstate_map.rs | ||
---|---|---|
782 | If this cannot be called on a fully untracked node, it seems like we should not use a _or_insert method. |
Why can we have an empty closure here ?