# HG changeset patch # User Andrei Vermel # Date 1171043441 -10800 # Node ID 31a679ae7eef52e473376df0031049303c5f4d45 # Parent 0f9381cf9723e0d259b96ec66c538017cf5ab9a2 Fix dirstate fail at drive root on Windows diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -391,7 +391,7 @@ class dirstate(object): # 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):