mercurial/httprepo.py
changeset 3703 e674cae8efee
parent 3662 f4dc02d7fb71
child 3877 abaee83ce0a6
child 4012 d1e31d7f7d44
--- a/mercurial/httprepo.py	Mon Nov 20 19:32:46 2006 -0200
+++ b/mercurial/httprepo.py	Tue Nov 21 23:08:29 2006 -0200
@@ -328,8 +328,14 @@
 
         type = ""
         types = self.capable('unbundle')
+        # servers older than d1b16a746db6 will send 'unbundle' as a
+        # boolean capability
+        try:
+            types = types.split(',')
+        except AttributeError:
+            types = [""]
         if types:
-            for x in types.split(','):
+            for x in types:
                 if x in changegroup.bundletypes:
                     type = x
                     break