comparison hgext/narrow/narrowwirepeer.py @ 40212:885d5cf9b6a4

py3: add some r'' prefixes in hgext/narrow/narrowwirepeer.py This fixes test-narrow-widen-no-ellipsis.t on Python 3. # skip-blame because just r'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5023
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sat, 13 Oct 2018 00:35:37 +0300
parents 74558635dad5
children 2c5835b4246b
comparison
equal deleted inserted replaced
40211:d216ae4cc3f6 40212:885d5cf9b6a4
98 chunks = bundler.getchunks() 98 chunks = bundler.getchunks()
99 return wireprototypes.streamres(gen=chunks, 99 return wireprototypes.streamres(gen=chunks,
100 prefer_uncompressed=preferuncompressed) 100 prefer_uncompressed=preferuncompressed)
101 101
102 def peernarrowwiden(remote, **kwargs): 102 def peernarrowwiden(remote, **kwargs):
103 for ch in ('oldincludes', 'newincludes', 'oldexcludes', 'newexcludes', 103 for ch in (r'oldincludes', r'newincludes', r'oldexcludes', r'newexcludes',
104 'commonheads', 'known'): 104 r'commonheads', r'known'):
105 kwargs[ch] = wireprototypes.encodelist(kwargs[ch]) 105 kwargs[ch] = wireprototypes.encodelist(kwargs[ch])
106 106
107 kwargs['ellipses'] = '%i' % bool(kwargs['ellipses']) 107 kwargs[r'ellipses'] = '%i' % bool(kwargs[r'ellipses'])
108 f = remote._callcompressable('narrow_widen', **kwargs) 108 f = remote._callcompressable('narrow_widen', **kwargs)
109 return bundle2.getunbundler(remote.ui, f) 109 return bundle2.getunbundler(remote.ui, f)