# HG changeset patch # User Alexis S. L. Carvalho # Date 2006-11-22 01:08:29 # Node ID e674cae8efeeeed57a91026f015036889265081e # Parent 70c3ee224c088b72ed92bb48eb511919ce115877 fix push over HTTP to older servers diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py --- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -328,8 +328,14 @@ class httprepository(remoterepository): 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