##// END OF EJS Templates
share: handle --relative shares to a different drive letter gracefully...
Matt Harbison -
r34980:b64ea7fb stable
parent child Browse files
Show More
@@ -243,7 +243,9 b' def share(ui, source, dest=None, update='
243 try:
243 try:
244 sharedpath = os.path.relpath(sharedpath, destvfs.base)
244 sharedpath = os.path.relpath(sharedpath, destvfs.base)
245 requirements += 'relshared\n'
245 requirements += 'relshared\n'
246 except IOError as e:
246 except (IOError, ValueError) as e:
247 # ValueError is raised on Windows if the drive letters differ on
248 # each path
247 raise error.Abort(_('cannot calculate relative path'),
249 raise error.Abort(_('cannot calculate relative path'),
248 hint=str(e))
250 hint=str(e))
249 else:
251 else:
General Comments 0
You need to be logged in to leave comments. Login now