mercurial/wireprotov1server.py
changeset 48526 04688c51f81f
parent 47012 d55b71393907
child 48597 8475a1364909
--- a/mercurial/wireprotov1server.py	Thu Dec 30 13:25:44 2021 +0100
+++ b/mercurial/wireprotov1server.py	Tue Dec 07 16:44:22 2021 +0100
@@ -147,12 +147,6 @@
         k for k, v in wireprototypes.TRANSPORTS.items() if v[b'version'] == 1
     }
 
-    # Because SSHv2 is a mirror of SSHv1, we allow "batch" commands through to
-    # SSHv2.
-    # TODO undo this hack when SSH is using the unified frame protocol.
-    if name == b'batch':
-        transports.add(wireprototypes.SSHV2)
-
     if permission not in (b'push', b'pull'):
         raise error.ProgrammingError(
             b'invalid wire protocol permission; '