mercurial/sshrepo.py
changeset 5254 b534c502bfb3
parent 5196 86e95b93559a
child 5255 65dc707606ed
equal deleted inserted replaced
5253:fd371f99f20b 5254:b534c502bfb3
    69             lines.append(l)
    69             lines.append(l)
    70             max_noise -= 1
    70             max_noise -= 1
    71         else:
    71         else:
    72             self.raise_(repo.RepoError(_("no suitable response from remote hg")))
    72             self.raise_(repo.RepoError(_("no suitable response from remote hg")))
    73 
    73 
    74         self.capabilities = ()
    74         self.capabilities = util.set()
    75         lines.reverse()
    75         lines.reverse()
    76         for l in lines:
    76         for l in lines:
    77             if l.startswith("capabilities:"):
    77             if l.startswith("capabilities:"):
    78                 self.capabilities = l[:-1].split(":")[1].split()
    78                 self.capabilities.update(l[:-1].split(":")[1].split())
    79                 break
    79                 break
    80 
    80 
    81     def readerr(self):
    81     def readerr(self):
    82         while 1:
    82         while 1:
    83             size = util.fstat(self.pipee).st_size
    83             size = util.fstat(self.pipee).st_size