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