comparison mercurial/bundle2.py @ 36116:b587a889b97e

py3: use raw string for key in **kwargs Otherwise Python 3 is unhappy. We only set a single key here. So I don't think pycompat.strkwargs() is necessary. Differential Revision: https://phab.mercurial-scm.org/D2163
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 11 Feb 2018 16:54:56 -0800
parents 768326377e4d
children 1ec6fd26f841
comparison
equal deleted inserted replaced
36115:c1104fe76e69 36116:b587a889b97e
1727 op.repo._applyopenerreqs() 1727 op.repo._applyopenerreqs()
1728 op.repo._writerequirements() 1728 op.repo._writerequirements()
1729 extrakwargs = {} 1729 extrakwargs = {}
1730 targetphase = inpart.params.get('targetphase') 1730 targetphase = inpart.params.get('targetphase')
1731 if targetphase is not None: 1731 if targetphase is not None:
1732 extrakwargs['targetphase'] = int(targetphase) 1732 extrakwargs[r'targetphase'] = int(targetphase)
1733 ret = _processchangegroup(op, cg, tr, 'bundle2', 'bundle2', 1733 ret = _processchangegroup(op, cg, tr, 'bundle2', 'bundle2',
1734 expectedtotal=nbchangesets, **extrakwargs) 1734 expectedtotal=nbchangesets, **extrakwargs)
1735 if op.reply is not None: 1735 if op.reply is not None:
1736 # This is definitely not the final form of this 1736 # This is definitely not the final form of this
1737 # return. But one need to start somewhere. 1737 # return. But one need to start somewhere.