mercurial/cmdutil.py
changeset 32343 d47d7d3bd07b
parent 32337 46ba2cdda476
child 32362 7b3c27af90c2
--- a/mercurial/cmdutil.py	Sat May 13 15:41:50 2017 +0900
+++ b/mercurial/cmdutil.py	Sat Jan 09 23:24:52 2016 +0900
@@ -3335,7 +3335,10 @@
         if f in copied:
             repo.dirstate.copy(copied[f], f)
 
-command = registrar.command
+class command(registrar.command):
+    def _doregister(self, func, name, *args, **kwargs):
+        func._deprecatedregistrar = True  # flag for deprecwarn in extensions.py
+        return super(command, self)._doregister(func, name, *args, **kwargs)
 
 # a list of (ui, repo, otherpeer, opts, missing) functions called by
 # commands.outgoing.  "missing" is "missing" of the result of