comparison hgext3rd/pullbundle.py @ 4145:08b3c370e8b3

pullbundle: compat with Mercurial 4.7
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 26 Sep 2018 13:15:40 +0200
parents b5cd26712e4b
children 88e922eca4e2
comparison
equal deleted inserted replaced
4144:b5cd26712e4b 4145:08b3c370e8b3
357 def _makenewstream(newpart, repo, outgoing, version, source, 357 def _makenewstream(newpart, repo, outgoing, version, source,
358 bundlecaps, filematcher, cgversions): 358 bundlecaps, filematcher, cgversions):
359 old = changegroup._changegroupinfo 359 old = changegroup._changegroupinfo
360 try: 360 try:
361 changegroup._changegroupinfo = _changegroupinfo 361 changegroup._changegroupinfo = _changegroupinfo
362 cgstream = changegroup.makestream(repo, outgoing, version, source, 362 if filematcher is not None:
363 bundlecaps=bundlecaps, 363 cgstream = changegroup.makestream(repo, outgoing, version, source,
364 filematcher=filematcher) 364 bundlecaps=bundlecaps,
365 filematcher=filematcher)
366 else:
367 cgstream = changegroup.makestream(repo, outgoing, version, source,
368 bundlecaps=bundlecaps)
365 finally: 369 finally:
366 changegroup._changegroupinfo = old 370 changegroup._changegroupinfo = old
367 371
368 nbchanges = len(outgoing.missing) 372 nbchanges = len(outgoing.missing)
369 pversion = None 373 pversion = None