( )⚙ D10138 rhg: Don’t make repository path absolute too early

This is an archive of the discontinued Mercurial Phabricator instance.

rhg: Don’t make repository path absolute too early
ClosedPublic

Authored by SimonSapin on Mar 9 2021, 4:40 AM.

Details

Summary

Some error messages want to include a relative path,
which affects the output of some tests.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

SimonSapin created this revision.Mar 9 2021, 4:40 AM
baymax updated this revision to Diff 26197.Mar 9 2021, 8:40 AM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

marmoute accepted this revision.Mar 9 2021, 1:20 PM
marmoute requested changes to this revision.
This revision now requires changes to proceed.Mar 9 2021, 1:22 PM

@marmoute why did you ask for changes on this diff?

rust/rhg/src/commands/root.rs
19

FYI: https://www.reddit.com/r/rust/comments/jqx8hf/normpath_more_reliable_path_manipulation/

I'm not sure if we want to do anything about it for now other than maybe adding a comment and a maybe wrapper function for all canonicalize.

SimonSapin added inline comments.Mar 11 2021, 4:51 AM
rust/rhg/src/commands/root.rs
19

https://docs.rs/normpath/0.2.0/normpath/trait.PathExt.html#tymethod.normalize says this method is the same as canonicalize on Unix. I think we can revisit if we run into the Windows-specific issues this crate aims to solve.

Alphare accepted this revision.Mar 11 2021, 5:18 AM
marmoute accepted this revision.Mar 12 2021, 11:52 AM
This revision now requires review to proceed.Mar 12 2021, 11:52 AM
SimonSapin edited the summary of this revision. (Show Details)Mar 12 2021, 5:07 PM
SimonSapin updated this revision to Diff 26298.
baymax updated this revision to Diff 26344.Mar 15 2021, 9:10 AM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.