mercurial/localrepo.py
changeset 24373 59cc09240afb
parent 24320 b9f7f3eeb99c
child 24378 9347c15d8136
equal deleted inserted replaced
24372:577f65cf1a57 24373:59cc09240afb
   277         if create:
   277         if create:
   278             self._writerequirements()
   278             self._writerequirements()
   279 
   279 
   280 
   280 
   281         self._branchcaches = {}
   281         self._branchcaches = {}
       
   282         self._revbranchcache = None
   282         self.filterpats = {}
   283         self.filterpats = {}
   283         self._datafilters = {}
   284         self._datafilters = {}
   284         self._transref = self._lockref = self._wlockref = None
   285         self._transref = self._lockref = self._wlockref = None
   285 
   286 
   286         # A cache for various files under .hg/ that tracks file changes,
   287         # A cache for various files under .hg/ that tracks file changes,
   724         '''returns a dictionary {branch: [branchheads]} with branchheads
   725         '''returns a dictionary {branch: [branchheads]} with branchheads
   725         ordered by increasing revision number'''
   726         ordered by increasing revision number'''
   726         branchmap.updatecache(self)
   727         branchmap.updatecache(self)
   727         return self._branchcaches[self.filtername]
   728         return self._branchcaches[self.filtername]
   728 
   729 
       
   730     @unfilteredmethod
       
   731     def revbranchcache(self):
       
   732         if not self._revbranchcache:
       
   733             self._revbranchcache = branchmap.revbranchcache(self.unfiltered())
       
   734         return self._revbranchcache
       
   735 
   729     def branchtip(self, branch, ignoremissing=False):
   736     def branchtip(self, branch, ignoremissing=False):
   730         '''return the tip node for a given branch
   737         '''return the tip node for a given branch
   731 
   738 
   732         If ignoremissing is True, then this method will not raise an error.
   739         If ignoremissing is True, then this method will not raise an error.
   733         This is helpful for callers that only expect None for a missing branch
   740         This is helpful for callers that only expect None for a missing branch