##// END OF EJS Templates
windows: use abspath in convert.subversion...
marmoute -
r48434:352ada3a default
parent child Browse files
Show More
@@ -164,7 +164,7 b' def geturl(path):'
164 # svn.client.url_from_path() fails with local repositories
164 # svn.client.url_from_path() fails with local repositories
165 pass
165 pass
166 if os.path.isdir(path):
166 if os.path.isdir(path):
167 path = os.path.normpath(os.path.abspath(path))
167 path = os.path.normpath(util.abspath(path))
168 if pycompat.iswindows:
168 if pycompat.iswindows:
169 path = b'/' + util.normpath(path)
169 path = b'/' + util.normpath(path)
170 # Module URL is later compared with the repository URL returned
170 # Module URL is later compared with the repository URL returned
@@ -431,7 +431,7 b' def issvnurl(ui, url):'
431 path = unicodepath.encode(fsencoding)
431 path = unicodepath.encode(fsencoding)
432 except ValueError:
432 except ValueError:
433 proto = b'file'
433 proto = b'file'
434 path = os.path.abspath(url)
434 path = util.abspath(url)
435 try:
435 try:
436 path.decode(fsencoding)
436 path.decode(fsencoding)
437 except UnicodeDecodeError:
437 except UnicodeDecodeError:
General Comments 0
You need to be logged in to leave comments. Login now