##// END OF EJS Templates
dirstate: make sure rootdir ends with directory separator (issue4557)...
Yuya Nishihara -
r24198:3cc630be stable
parent child Browse files
Show More
@@ -38,7 +38,12 b' class dirstate(object):'
38 self._opener = opener
38 self._opener = opener
39 self._validate = validate
39 self._validate = validate
40 self._root = root
40 self._root = root
41 self._rootdir = os.path.join(root, '')
41 # ntpath.join(root, '') of Python 2.7.9 does not add sep if root is
42 # UNC path pointing to root share (issue4557)
43 if root.endswith(os.sep):
44 self._rootdir = root
45 else:
46 self._rootdir = root + os.sep
42 self._dirty = False
47 self._dirty = False
43 self._dirtypl = False
48 self._dirtypl = False
44 self._lastnormaltime = 0
49 self._lastnormaltime = 0
General Comments 0
You need to be logged in to leave comments. Login now