comparison hgext3rd/topic/discovery.py @ 5189:26b47a967a1d

compat: update a couple of obviously outdated version comments
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Mar 2020 18:36:10 +0700
parents 515d425c0a05
children a4d081923c81
comparison
equal deleted inserted replaced
5188:43feb2380c05 5189:26b47a967a1d
18 ) 18 )
19 19
20 from mercurial import wireprotov1server 20 from mercurial import wireprotov1server
21 21
22 def _headssummary(orig, pushop, *args, **kwargs): 22 def _headssummary(orig, pushop, *args, **kwargs):
23 # In mercurial > 4.3, we receive the pushop as arguments
24 repo = pushop.repo.unfiltered() 23 repo = pushop.repo.unfiltered()
25 remote = pushop.remote 24 remote = pushop.remote
26 25
27 publishing = (b'phases' not in remote.listkeys(b'namespaces') 26 publishing = (b'phases' not in remote.listkeys(b'namespaces')
28 or bool(remote.listkeys(b'phases').get(b'publishing', False))) 27 or bool(remote.listkeys(b'phases').get(b'publishing', False)))