Read the content of a revlog at a given revision.
Details
Details
- Reviewers
Alphare indygreg - Group Reviewers
hg-reviewers - Commits
- rHGb56df13a0450: hg-core: define a `DebugData` `Operation`
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
rust/hg-core/src/operations/debugdata.rs | ||
---|---|---|
25 | This enum duplicates a lot of states from RevlogError. This kinda feels like an anti-pattern. Should it store a RevlogError(RevlogError) instead? (I legitimately do not know what the best practice is here. Completely duplicating an enum just doesn't sit right with me!) | |
103 | We would ideally have a method on the repo resolve this path, since the logic is influenced by .hg/requires. But this is probably fine for now. |
This enum duplicates a lot of states from RevlogError. This kinda feels like an anti-pattern. Should it store a RevlogError(RevlogError) instead?
(I legitimately do not know what the best practice is here. Completely duplicating an enum just doesn't sit right with me!)