This feature is not supported yet, and affects the output of some tests.
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHGc184b490da37: rhg: Fall back to Python if ui.relative-paths is configured
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/rhg/src/commands/files.rs | ||
---|---|---|
30–33 | Note that "no" is not going to be enough since they are many way to express "false" for config boolean. Maybe reverse the logic and fallback for anything that is not the default config ? |
rust/rhg/src/commands/files.rs | ||
---|---|---|
30–33 | You could use get_bool first? |
rust/rhg/src/commands/files.rs | ||
---|---|---|
30–33 | This config is not quite a boolean since it also has a legacy value, where get_bool would return an error. We could use .is_some() and fall back for any value other than the implicit default as I think marmoute suggested, which is more often than necessary. We could also implement the full parsing for this value, but then that leaves us dealing with legacy which resolves to either true or false depending on who’s asking. |
rust/rhg/src/commands/files.rs | ||
---|---|---|
30–33 | I vote for doing the dummest correct things for now. And revisite this later. |
rust/rhg/src/commands/files.rs | ||
---|---|---|
32 | Is the error message still valid ? |
Is the error message still valid ?