mercurial/sshserver.py
changeset 29389 98e8313dcd9e
parent 26587 56b2bcea2529
child 29740 1a29db79a98d
equal deleted inserted replaced
29388:f694e20193f2 29389:98e8313dcd9e
     9 from __future__ import absolute_import
     9 from __future__ import absolute_import
    10 
    10 
    11 import os
    11 import os
    12 import sys
    12 import sys
    13 
    13 
       
    14 from .i18n import _
    14 from . import (
    15 from . import (
    15     error,
    16     error,
    16     hook,
    17     hook,
    17     util,
    18     util,
    18     wireproto,
    19     wireproto,
    38         keys = args.split()
    39         keys = args.split()
    39         for n in xrange(len(keys)):
    40         for n in xrange(len(keys)):
    40             argline = self.fin.readline()[:-1]
    41             argline = self.fin.readline()[:-1]
    41             arg, l = argline.split()
    42             arg, l = argline.split()
    42             if arg not in keys:
    43             if arg not in keys:
    43                 raise error.Abort("unexpected parameter %r" % arg)
    44                 raise error.Abort(_("unexpected parameter %r") % arg)
    44             if arg == '*':
    45             if arg == '*':
    45                 star = {}
    46                 star = {}
    46                 for k in xrange(int(l)):
    47                 for k in xrange(int(l)):
    47                     argline = self.fin.readline()[:-1]
    48                     argline = self.fin.readline()[:-1]
    48                     arg, l = argline.split()
    49                     arg, l = argline.split()