diff mercurial/wireprotov2server.py @ 37781:352932a11905

wireproto: move command registration types to wireprototypes These are shared across wire protocol implementations. wireprototypes is our module for common code. Differential Revision: https://phab.mercurial-scm.org/D3396
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 16 Apr 2018 21:52:33 -0700
parents 8acd3a9ac4fd
children 99accae4cc59
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py	Mon Apr 16 21:49:59 2018 -0700
+++ b/mercurial/wireprotov2server.py	Mon Apr 16 21:52:33 2018 -0700
@@ -438,7 +438,7 @@
             raise error.ProgrammingError('%s command already registered '
                                          'for version 2' % name)
 
-        wireproto.commandsv2[name] = wireproto.commandentry(
+        wireproto.commandsv2[name] = wireprototypes.commandentry(
             func, args=args, transports=transports, permission=permission)
 
         return func