Mercurial > evolve
changeset 1951:0309cac5d91d
uisetup: move all remaining wrapping into uisetup
All our wrapping is now properly done at uisetup time. Hooray.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 30 Mar 2016 22:33:06 -0700 |
parents | 99c1a26abf3f |
children | 665d6322994e |
files | hgext3rd/topic/__init__.py |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Wed Mar 30 22:31:24 2016 -0700 +++ b/hgext3rd/topic/__init__.py Wed Mar 30 22:33:06 2016 -0700 @@ -90,6 +90,17 @@ discovery.modsetup(ui) setupimportexport(ui) + extensions.afterloaded('rebase', _fixrebase) + + entry = extensions.wrapcommand(commands.table, 'commit', commitwrap) + entry[1].append(('t', 'topic', '', + _("use specified topic"), _('TOPIC'))) + + extensions.wrapfunction(cmdutil, 'buildcommittext', committextwrap) + extensions.wrapfunction(merge, 'update', mergeupdatewrap) + cmdutil.summaryhooks.add('topic', summaryhook) + + def reposetup(ui, repo): orig = repo.__class__ if not isinstance(repo, localrepo.localrepository): @@ -329,14 +340,3 @@ cmdutil.extrapreimport.append('topic') cmdutil.extrapreimportmap['topic'] = _importtopic patch.patchheadermap.append(('EXP-Topic', 'topic')) - -extensions.afterloaded('rebase', _fixrebase) - -entry = extensions.wrapcommand(commands.table, 'commit', commitwrap) -entry[1].append(('t', 'topic', '', - _("use specified topic"), _('TOPIC'))) - -extensions.wrapfunction(cmdutil, 'buildcommittext', committextwrap) -extensions.wrapfunction(merge, 'update', mergeupdatewrap) -cmdutil.summaryhooks.add('topic', summaryhook) -