Helps remove the conditional in test-debugcommands.t for rhg.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGe8ae91b1a63d: rhg: raise wdir specific error for `hg debugdata`
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
rust/hg-core/src/revset.rs | ||
---|---|---|
54–56 | Although tests don’t cover this it looks like Python code also recognizes hex prefixes of WORKING_DIRECTORY_REV, for example hg debugdata -c fffff. This could be based on is_prefix_of after creating a NodePrefix. (I also just found a pre-existing bug: to match Python NodePrefix::from_hex should only accept input with 5 or more hex digits) |
Although tests don’t cover this it looks like Python code also recognizes hex prefixes of WORKING_DIRECTORY_REV, for example hg debugdata -c fffff. This could be based on is_prefix_of after creating a NodePrefix.
(I also just found a pre-existing bug: to match Python NodePrefix::from_hex should only accept input with 5 or more hex digits)