mercurial/dirstate.py
changeset 4075 31a679ae7eef
parent 3842 47c634bf1e92
child 4081 e6d26e71f049
child 4173 b36bd7534c08
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: