comparison mercurial/localrepo.py @ 10327:32197f7eceb3

localrepo: add a quick docstring for localrepo.branchmap()
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sat, 06 Feb 2010 11:29:23 +0100
parents d9a2bc2f776b
children 36b6b5ef7820
comparison
equal deleted inserted replaced
10326:8b90e2966219 10327:32197f7eceb3
324 self._writebranchcache(partial, self.changelog.tip(), tiprev) 324 self._writebranchcache(partial, self.changelog.tip(), tiprev)
325 325
326 return partial 326 return partial
327 327
328 def branchmap(self): 328 def branchmap(self):
329 '''returns a dictionary {branch: [branchheads]}'''
329 tip = self.changelog.tip() 330 tip = self.changelog.tip()
330 if self._branchcache is not None and self._branchcachetip == tip: 331 if self._branchcache is not None and self._branchcachetip == tip:
331 return self._branchcache 332 return self._branchcache
332 333
333 oldtip = self._branchcachetip 334 oldtip = self._branchcachetip