branch | stable |
changeset 34979 | b64ea7fb9599 |
parent 34879 | 7d51a7792f52 |
child 35331 | 773a9a06047c |
--- a/mercurial/hg.py Thu Nov 02 20:35:31 2017 -0400 +++ b/mercurial/hg.py Thu Nov 02 23:55:09 2017 -0400 @@ -243,7 +243,9 @@ try: sharedpath = os.path.relpath(sharedpath, destvfs.base) requirements += 'relshared\n' - except IOError as e: + except (IOError, ValueError) as e: + # ValueError is raised on Windows if the drive letters differ on + # each path raise error.Abort(_('cannot calculate relative path'), hint=str(e)) else: