mercurial/exchange.py
changeset 35064 6370ed6516a6
parent 35062 d7a4384d2d87
child 35245 5a62910948d2
equal deleted inserted replaced
35063:ef8518f14e4e 35064:6370ed6516a6
  1783         return
  1783         return
  1784 
  1784 
  1785     outgoing = _computeoutgoing(repo, heads, common)
  1785     outgoing = _computeoutgoing(repo, heads, common)
  1786     bundle2.addparttagsfnodescache(repo, bundler, outgoing)
  1786     bundle2.addparttagsfnodescache(repo, bundler, outgoing)
  1787 
  1787 
  1788 def _getbookmarks(repo, **kwargs):
       
  1789     """Returns bookmark to node mapping.
       
  1790 
       
  1791     This function is primarily used to generate `bookmarks` bundle2 part.
       
  1792     It is a separate function in order to make it easy to wrap it
       
  1793     in extensions. Passing `kwargs` to the function makes it easy to
       
  1794     add new parameters in extensions.
       
  1795     """
       
  1796 
       
  1797     return dict(bookmod.listbinbookmarks(repo))
       
  1798 
       
  1799 def check_heads(repo, their_heads, context):
  1788 def check_heads(repo, their_heads, context):
  1800     """check if the heads of a repo have been modified
  1789     """check if the heads of a repo have been modified
  1801 
  1790 
  1802     Used by peer for unbundling.
  1791     Used by peer for unbundling.
  1803     """
  1792     """