HomePhabricator

share: store relative share paths with '/' separators

Authored by mharbison72.

Description

share: store relative share paths with '/' separators

I created a relative share in Windows and tried to use it in WSL, and it failed:

abort: .hg/sharedpath points to nonexistent directory
    /mnt/c/Users/Matt/hg-review/.hg/..\..\hg\.hg

Use normpath on the read side so that the code has the usual Windows style
paths it always had (I don't think that matters much), but it also eliminates
the directory escaping path components in the case where the path is printed.

This will not fix repositories that have already been created, but it's trivial
enough to hand edit the file to correct it.

Differential Revision: https://phab.mercurial-scm.org/D10330

Details

Committed
mharbison72Thu, Apr 8, 6:43 PM
Differential Revision
D10330: share: store relative share paths with '/' separators
Parents
rHG6d5a26e94d9e: unit-tests: Fix `cargo test` on 32-bit platforms
Branches
Unknown
Tags
Unknown