changeset 2117:e9d5f54765a2

exchange: fix some wrong reference to serveronly The function have all moved into 'obsexchange' now, so we do not need (and actually cannot) seek them in 'evolve.serveronly'.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 14 Mar 2017 16:56:48 -0700
parents 39d84b395343
children d0bc98161794
files hgext3rd/evolve/obsexchange.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obsexchange.py	Tue Mar 14 15:50:43 2017 -0700
+++ b/hgext3rd/evolve/obsexchange.py	Tue Mar 14 16:56:48 2017 -0700
@@ -34,7 +34,6 @@
 
 from . import (
     exthelper,
-    serveronly,
     utility,
     obsdiscovery,
 )
@@ -338,7 +337,7 @@
 @eh.addattr(localrepo.localpeer, 'evoext_pushobsmarkers_0')
 def local_pushobsmarkers(peer, obsfile):
     data = obsfile.read()
-    serveronly._pushobsmarkers(peer._repo, data)
+    _pushobsmarkers(peer._repo, data)
 
 # compat-code: _pullobsolete
 #
@@ -417,8 +416,8 @@
 
 @eh.addattr(localrepo.localpeer, 'evoext_pullobsmarkers_0')
 def local_pullobsmarkers(self, heads=None, common=None):
-    return serveronly._getobsmarkersstream(self._repo, heads=heads,
-                                           common=common)
+    return _getobsmarkersstream(self._repo, heads=heads,
+                                common=common)
 
 def _legacypush_capabilities(orig, repo, proto):
     """wrapper to advertise new capability"""