# HG changeset patch # User Pierre-Yves David # Date 1524128039 -7200 # Node ID b12c5d107187f3bf96d455934ba9843f04651e12 # Parent d725fe3e39895447f1be2d714fe2418a95dab39a 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+ diff -r d725fe3e3989 -r b12c5d107187 hgext3rd/serverminitopic.py --- 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 = {}