minitopic: handle wireproto module change from b4d85bc122bd
This module have been scattered in other place, so we need to detect and handle
this for 4.6+
--- a/hgext3rd/serverminitopic.py Thu Apr 19 10:50:24 2018 +0200
+++ b/hgext3rd/serverminitopic.py Thu Apr 19 10:53:59 2018 +0200
@@ -18,9 +18,14 @@
node,
registrar,
util,
- wireproto,
)
+try:
+ from mercurial import wireproto
+ wireproto.branchmap
+except ImportError: # <= hg-4.5
+ from mercurial import wireprotov1server as wireproto
+
if util.safehasattr(registrar, 'configitem'):
configtable = {}