Mercurial > public > mercurial-scm > hg
comparison mercurial/sshrepo.py @ 5258:b534c502bfb3
Turn capabilities into a mutable set, instead of a fixed tuple.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 27 Aug 2007 14:16:04 -0700 |
parents | 86e95b93559a |
children | 65dc707606ed |
comparison
equal
deleted
inserted
replaced
5257:fd371f99f20b | 5258: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 |