##// END OF EJS Templates
share: store relative share paths with '/' separators...
Matt Harbison -
r47650:218a26df default
parent child Browse files
Show More
@@ -469,7 +469,7 b' def _getsharedvfs(hgvfs, requirements):'
469 469 # ``.hg/`` for ``relshared``.
470 470 sharedpath = hgvfs.read(b'sharedpath').rstrip(b'\n')
471 471 if requirementsmod.RELATIVE_SHARED_REQUIREMENT in requirements:
472 sharedpath = hgvfs.join(sharedpath)
472 sharedpath = util.normpath(hgvfs.join(sharedpath))
473 473
474 474 sharedvfs = vfsmod.vfs(sharedpath, realpath=True)
475 475
@@ -3672,6 +3672,7 b' def createrepository(ui, path, createopt'
3672 3672 if createopts.get(b'sharedrelative'):
3673 3673 try:
3674 3674 sharedpath = os.path.relpath(sharedpath, hgvfs.base)
3675 sharedpath = util.pconvert(sharedpath)
3675 3676 except (IOError, ValueError) as e:
3676 3677 # ValueError is raised on Windows if the drive letters differ
3677 3678 # on each path.
General Comments 0
You need to be logged in to leave comments. Login now