use registrar.command()
1 files changed, 2 insertions(+), 1 deletions(-)

M hgext/moinport.py
M hgext/moinport.py +2 -1
@@ 39,6 39,7 @@ import time
 
 from mercurial import (
     cmdutil,
+    registrar,
     scmutil,
     url,
     util,

          
@@ 46,7 47,7 @@ from mercurial import (
 from mercurial.i18n import _
 
 cmdtable = {}
-command = cmdutil.command(cmdtable)
+command = registrar.command(cmdtable)
 
 class MoinPort(object):
     def __init__(self, ui, repo):