mercurial/changegroup.py
changeset 41676 0531dff73d0b
parent 41673 1db5ae4b0dda
child 41719 5f9d057ba28c
equal deleted inserted replaced
41675:ddbebce94665 41676:0531dff73d0b
  1311                matcher=None, ellipses=False, shallow=False,
  1311                matcher=None, ellipses=False, shallow=False,
  1312                ellipsisroots=None, fullnodes=None):
  1312                ellipsisroots=None, fullnodes=None):
  1313     assert version in supportedoutgoingversions(repo)
  1313     assert version in supportedoutgoingversions(repo)
  1314 
  1314 
  1315     if matcher is None:
  1315     if matcher is None:
  1316         matcher = matchmod.always(repo.root, '')
  1316         matcher = matchmod.always()
  1317     if oldmatcher is None:
  1317     if oldmatcher is None:
  1318         oldmatcher = matchmod.never(repo.root, '')
  1318         oldmatcher = matchmod.never()
  1319 
  1319 
  1320     if version == '01' and not matcher.always():
  1320     if version == '01' and not matcher.always():
  1321         raise error.ProgrammingError('version 01 changegroups do not support '
  1321         raise error.ProgrammingError('version 01 changegroups do not support '
  1322                                      'sparse file matchers')
  1322                                      'sparse file matchers')
  1323 
  1323