comparison hgext/infinitepush/__init__.py @ 37614:a81d02ea65db

wireproto: move version 1 peer functionality to standalone module (API) wireproto.py contains code for both the client and the server. There *should* be a somewhat strong separation between the two. This commit extracts the client-side code from wireproto.py into a new module - wireprotov1peer. Differential Revision: https://phab.mercurial-scm.org/D3259
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 11 Apr 2018 12:49:08 -0700
parents 5e71dea79aae
children f3dc8239e3a9
comparison
equal deleted inserted replaced
37613:96d735601ca1 37614:a81d02ea65db
126 pycompat, 126 pycompat,
127 registrar, 127 registrar,
128 util, 128 util,
129 wireproto, 129 wireproto,
130 wireprototypes, 130 wireprototypes,
131 wireprotov1peer,
131 ) 132 )
132 133
133 from . import ( 134 from . import (
134 bundleparts, 135 bundleparts,
135 common, 136 common,
317 318
318 extensions.wrapcommand(commands.table, 'pull', _pull) 319 extensions.wrapcommand(commands.table, 'pull', _pull)
319 320
320 extensions.wrapfunction(discovery, 'checkheads', _checkheads) 321 extensions.wrapfunction(discovery, 'checkheads', _checkheads)
321 322
322 wireproto.wirepeer.listkeyspatterns = listkeyspatterns 323 wireprotov1peer.wirepeer.listkeyspatterns = listkeyspatterns
323 324
324 partorder = exchange.b2partsgenorder 325 partorder = exchange.b2partsgenorder
325 index = partorder.index('changeset') 326 index = partorder.index('changeset')
326 partorder.insert( 327 partorder.insert(
327 index, partorder.pop(partorder.index(scratchbranchparttype))) 328 index, partorder.pop(partorder.index(scratchbranchparttype)))