--- 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)
-