Adds a very basic replica of ui.plain().
Details
Details
- Reviewers
 SimonSapin martinvonz - Group Reviewers
 hg-reviewers - Commits
 - rHG38deb65d4441: rhg: add ui.plain() and check it before showing relative paths in status
 
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/rhg/src/ui.rs | ||
|---|---|---|
| 70–73 | This can be spelled env::var("HGPLAIN").is_ok(). However env::var has two error cases. If we only want to check for the presence of a variable regardless of its Unicode validity, env::var_os("HGPLAIN").is_some() should be used instead.  | |
This can be spelled env::var("HGPLAIN").is_ok().
However env::var has two error cases. If we only want to check for the presence of a variable regardless of its Unicode validity, env::var_os("HGPLAIN").is_some() should be used instead.