mercurial/manifest.py
changeset 39983 19103e68a698
parent 39982 da0319e024c0
child 39984 3cacb74c3a22
equal deleted inserted replaced
39982:da0319e024c0 39983:19103e68a698
   718         if visit == 'all' or visit == 'this':
   718         if visit == 'all' or visit == 'this':
   719             self._loadalllazy()
   719             self._loadalllazy()
   720             return None
   720             return None
   721 
   721 
   722         todel = []
   722         todel = []
       
   723         loadlazy = self._loadlazy
   723         for k in visit:
   724         for k in visit:
   724             kslash = k + '/'
   725             loadlazy(k + '/')
   725             ld = self._lazydirs.get(kslash)
       
   726             if ld:
       
   727                 path, node, readsubtree = ld
       
   728                 self._dirs[kslash] = readsubtree(path, node)
       
   729                 todel.append(kslash)
       
   730         for kslash in todel:
       
   731             del self._lazydirs[kslash]
       
   732         return visit
   726         return visit
   733 
   727 
   734     def __len__(self):
   728     def __len__(self):
   735         self._load()
   729         self._load()
   736         size = len(self._files)
   730         size = len(self._files)