diff 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
line wrap: on
line diff
--- a/mercurial/sshrepo.py	Mon Aug 27 13:38:34 2007 -0700
+++ b/mercurial/sshrepo.py	Mon Aug 27 14:16:04 2007 -0700
@@ -71,11 +71,11 @@
         else:
             self.raise_(repo.RepoError(_("no suitable response from remote hg")))
 
-        self.capabilities = ()
+        self.capabilities = util.set()
         lines.reverse()
         for l in lines:
             if l.startswith("capabilities:"):
-                self.capabilities = l[:-1].split(":")[1].split()
+                self.capabilities.update(l[:-1].split(":")[1].split())
                 break
 
     def readerr(self):