mercurial/interfaces/repository.py
changeset 46371 0903d6b9b1df
parent 45946 464539c305aa
child 46373 711ba0f1057e
equal deleted inserted replaced
46370:cad17d50736c 46371:0903d6b9b1df
  1639         """Return a mapping of branch to heads in that branch."""
  1639         """Return a mapping of branch to heads in that branch."""
  1640 
  1640 
  1641     def revbranchcache():
  1641     def revbranchcache():
  1642         pass
  1642         pass
  1643 
  1643 
       
  1644     def register_changeset(rev, changelogrevision):
       
  1645         """Extension point for caches for new nodes.
       
  1646 
       
  1647         Multiple consumers are expected to need parts of the changelogrevision,
       
  1648         so it is provided as optimization to avoid duplicate lookups. A simple
       
  1649         cache would be fragile when other revisions are accessed, too."""
       
  1650         pass
       
  1651 
  1644     def branchtip(branchtip, ignoremissing=False):
  1652     def branchtip(branchtip, ignoremissing=False):
  1645         """Return the tip node for a given branch."""
  1653         """Return the tip node for a given branch."""
  1646 
  1654 
  1647     def lookup(key):
  1655     def lookup(key):
  1648         """Resolve the node for a revision."""
  1656         """Resolve the node for a revision."""