Mercurial > public > mercurial-scm > hg-stable
diff mercurial/httprepo.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 |
line wrap: on
line diff
--- 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