# HG changeset patch # User Pierre-Yves David # Date 1459333304 25200 # Node ID 8815e799d865ad403556fe446f990ea9df07a7cb # Parent 7eb737b7a9021153a756fcc19444726f63bd495e 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. diff -r 7eb737b7a902 -r 8815e799d865 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'):