changeset 1942:8815e799d865

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 30 Mar 2016 03:21:44 -0700
parents 7eb737b7a902
children cd56f4d8b5a3
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'):