comparison mercurial/dirstate.py @ 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 47c634bf1e92
children e6d26e71f049 b36bd7534c08
comparison
equal deleted inserted replaced
4074:0f9381cf9723 4075:31a679ae7eef
389 389
390 if ignored: imatch = match 390 if ignored: imatch = match
391 391
392 # self.root may end with a path separator when self.root == '/' 392 # self.root may end with a path separator when self.root == '/'
393 common_prefix_len = len(self.root) 393 common_prefix_len = len(self.root)
394 if not self.root.endswith('/'): 394 if not self.root.endswith(os.sep):
395 common_prefix_len += 1 395 common_prefix_len += 1
396 # recursion free walker, faster than os.walk. 396 # recursion free walker, faster than os.walk.
397 def findfiles(s): 397 def findfiles(s):
398 work = [s] 398 work = [s]
399 while work: 399 while work: