mercurial/exchange.py
changeset 30483 8491845a75b2
parent 30440 c3944ab1443a
child 30582 94de83ed250e
equal deleted inserted replaced
30482:55ec13c82ea0 30483:8491845a75b2
  1659             chunks.extend([node, fnode])
  1659             chunks.extend([node, fnode])
  1660 
  1660 
  1661     if chunks:
  1661     if chunks:
  1662         bundler.newpart('hgtagsfnodes', data=''.join(chunks))
  1662         bundler.newpart('hgtagsfnodes', data=''.join(chunks))
  1663 
  1663 
       
  1664 def _getbookmarks(repo, **kwargs):
       
  1665     """Returns bookmark to node mapping.
       
  1666 
       
  1667     This function is primarily used to generate `bookmarks` bundle2 part.
       
  1668     It is a separate function in order to make it easy to wrap it
       
  1669     in extensions. Passing `kwargs` to the function makes it easy to
       
  1670     add new parameters in extensions.
       
  1671     """
       
  1672 
       
  1673     return dict(bookmod.listbinbookmarks(repo))
       
  1674 
  1664 def check_heads(repo, their_heads, context):
  1675 def check_heads(repo, their_heads, context):
  1665     """check if the heads of a repo have been modified
  1676     """check if the heads of a repo have been modified
  1666 
  1677 
  1667     Used by peer for unbundling.
  1678     Used by peer for unbundling.
  1668     """
  1679     """