Show More
@@ -276,9 +276,9 b' class httprepository(remoterepository):' | |||
|
276 | 276 | def get_caps(self): |
|
277 | 277 | if self.caps is None: |
|
278 | 278 | try: |
|
279 | self.caps = self.do_read('capabilities').split() | |
|
279 | self.caps = util.set(self.do_read('capabilities').split()) | |
|
280 | 280 | except repo.RepoError: |
|
281 | self.caps = () | |
|
281 | self.caps = util.set() | |
|
282 | 282 | self.ui.debug(_('capabilities: %s\n') % |
|
283 | 283 | (' '.join(self.caps or ['none']))) |
|
284 | 284 | return self.caps |
@@ -13,7 +13,7 b' import re, lock, transaction, tempfile, ' | |||
|
13 | 13 | import os, revlog, time, util, extensions, hook |
|
14 | 14 | |
|
15 | 15 | class localrepository(repo.repository): |
|
16 | capabilities = ('lookup', 'changegroupsubset') | |
|
16 | capabilities = util.set(('lookup', 'changegroupsubset')) | |
|
17 | 17 | supported = ('revlogv1', 'store') |
|
18 | 18 | |
|
19 | 19 | def __init__(self, parentui, path=None, create=0): |
@@ -71,11 +71,11 b' class sshrepository(remoterepository):' | |||
|
71 | 71 | else: |
|
72 | 72 | self.raise_(repo.RepoError(_("no suitable response from remote hg"))) |
|
73 | 73 | |
|
74 | self.capabilities = () | |
|
74 | self.capabilities = util.set() | |
|
75 | 75 | lines.reverse() |
|
76 | 76 | for l in lines: |
|
77 | 77 | if l.startswith("capabilities:"): |
|
78 |
self.capabilities |
|
|
78 | self.capabilities.update(l[:-1].split(":")[1].split()) | |
|
79 | 79 | break |
|
80 | 80 | |
|
81 | 81 | def readerr(self): |
General Comments 0
You need to be logged in to leave comments.
Login now