mercurial/dirstate.py
changeset 3223 53e843840349
parent 3154 b1f10d3223c1
child 3529 09d99b7e4da0
equal deleted inserted replaced
3222:a5603ad915c5 3223:53e843840349
   204     def initdirs(self):
   204     def initdirs(self):
   205         if self.dirs is None:
   205         if self.dirs is None:
   206             self.dirs = {}
   206             self.dirs = {}
   207             for f in self.map:
   207             for f in self.map:
   208                 self.updatedirs(f, 1)
   208                 self.updatedirs(f, 1)
   209         
   209 
   210     def updatedirs(self, path, delta):
   210     def updatedirs(self, path, delta):
   211         if self.dirs is not None:
   211         if self.dirs is not None:
   212             for c in strutil.findall(path, '/'):
   212             for c in strutil.findall(path, '/'):
   213                 pc = path[:c]
   213                 pc = path[:c]
   214                 self.dirs.setdefault(pc, 0)
   214                 self.dirs.setdefault(pc, 0)