mercurial/exchange.py
changeset 43795 0f6782df1100
parent 43770 44b605638918
child 43821 ea97cd64c500
equal deleted inserted replaced
43794:d3f7bdc905fb 43795:0f6782df1100
  2575 def _getbundlephasespart(
  2575 def _getbundlephasespart(
  2576     bundler, repo, source, bundlecaps=None, b2caps=None, heads=None, **kwargs
  2576     bundler, repo, source, bundlecaps=None, b2caps=None, heads=None, **kwargs
  2577 ):
  2577 ):
  2578     """add phase heads part to the requested bundle"""
  2578     """add phase heads part to the requested bundle"""
  2579     if kwargs.get('phases', False):
  2579     if kwargs.get('phases', False):
  2580         if not b2caps or not b'heads' in b2caps.get(b'phases'):
  2580         if not b2caps or b'heads' not in b2caps.get(b'phases'):
  2581             raise error.Abort(_(b'no common phases exchange method'))
  2581             raise error.Abort(_(b'no common phases exchange method'))
  2582         if heads is None:
  2582         if heads is None:
  2583             heads = repo.heads()
  2583             heads = repo.heads()
  2584 
  2584 
  2585         headsbyphase = collections.defaultdict(set)
  2585         headsbyphase = collections.defaultdict(set)