revset: run 'modsetup' at uisetup time
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 30 Mar 2016 03:21:44 -0700
changeset 1942 8815e799d865
parent 1941 7eb737b7a902
child 1943 cd56f4d8b5a3
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.
hgext3rd/topic/__init__.py
--- 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'):