mercurial/dirstate.py
changeset 4081 e6d26e71f049
parent 4001 dda03b2d9ef1
parent 4075 31a679ae7eef
child 4146 e287d61dd268
equal deleted inserted replaced
4073:95ffa36d1d2a 4081:e6d26e71f049
   387 
   387 
   388         if ignored: imatch = match
   388         if ignored: imatch = match
   389 
   389 
   390         # self.root may end with a path separator when self.root == '/'
   390         # self.root may end with a path separator when self.root == '/'
   391         common_prefix_len = len(self.root)
   391         common_prefix_len = len(self.root)
   392         if not self.root.endswith('/'):
   392         if not self.root.endswith(os.sep):
   393             common_prefix_len += 1
   393             common_prefix_len += 1
   394         # recursion free walker, faster than os.walk.
   394         # recursion free walker, faster than os.walk.
   395         def findfiles(s):
   395         def findfiles(s):
   396             work = [s]
   396             work = [s]
   397             while work:
   397             while work: