revset: run 'modsetup' at uisetup time
We are slowly moving away from module time wrapping. These thing should be done
in the dedicated 'setup' method called by Mercurial.
--- a/hgext3rd/topic/__init__.py Wed Mar 30 03:20:16 2016 -0700
+++ b/hgext3rd/topic/__init__.py Wed Mar 30 03:21:44 2016 -0700
@@ -92,6 +92,7 @@
def uisetup(ui):
destination.modsetup(ui)
+ topicrevset.modsetup()
@contextlib.contextmanager
def usetopicmap(repo):
@@ -365,7 +366,6 @@
extensions.wrapfunction(exchange, '_pushb2phases', discovery._pushb2phases)
extensions.wrapfunction(changegroup.cg1unpacker, 'apply', cgapply)
exchange.b2partsgenmapping['phase'] = exchange._pushb2phases
-topicrevset.modsetup()
cmdutil.summaryhooks.add('topic', summaryhook)
if util.safehasattr(cmdutil, 'extraexport'):