mercurial/httprepo.py
changeset 5258 b534c502bfb3
parent 5196 86e95b93559a
child 5259 65dc707606ed
--- a/mercurial/httprepo.py	Mon Aug 27 13:38:34 2007 -0700
+++ b/mercurial/httprepo.py	Mon Aug 27 14:16:04 2007 -0700
@@ -276,9 +276,9 @@
     def get_caps(self):
         if self.caps is None:
             try:
-                self.caps = self.do_read('capabilities').split()
+                self.caps = util.set(self.do_read('capabilities').split())
             except repo.RepoError:
-                self.caps = ()
+                self.caps = util.set()
             self.ui.debug(_('capabilities: %s\n') %
                           (' '.join(self.caps or ['none'])))
         return self.caps