changeset 4075:31a679ae7eef

Fix dirstate fail at drive root on Windows
author Andrei Vermel <avermel@mail.ru>
date Fri, 09 Feb 2007 20:50:41 +0300
parents 0f9381cf9723
children 5a89c61c189c
files mercurial/dirstate.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Thu Feb 08 16:31:21 2007 -0200
+++ b/mercurial/dirstate.py	Fri Feb 09 20:50:41 2007 +0300
@@ -391,7 +391,7 @@
 
         # self.root may end with a path separator when self.root == '/'
         common_prefix_len = len(self.root)
-        if not self.root.endswith('/'):
+        if not self.root.endswith(os.sep):
             common_prefix_len += 1
         # recursion free walker, faster than os.walk.
         def findfiles(s):