hgext/convert/subversion.py
changeset 16689 f366d4c2ff34
parent 16688 cfb6682961b8
child 16925 eaf6a6d7f015
equal deleted inserted replaced
16688:cfb6682961b8 16689:f366d4c2ff34
   174             ui.warn(_('svn: cannot probe remote repository, assume it could '
   174             ui.warn(_('svn: cannot probe remote repository, assume it could '
   175                       'be a subversion repository. Use --source-type if you '
   175                       'be a subversion repository. Use --source-type if you '
   176                       'know better.\n'))
   176                       'know better.\n'))
   177             return True
   177             return True
   178         data = inst.fp.read()
   178         data = inst.fp.read()
   179     except:
   179     except Exception:
   180         # Could be urllib2.URLError if the URL is invalid or anything else.
   180         # Could be urllib2.URLError if the URL is invalid or anything else.
   181         return False
   181         return False
   182     return '<m:human-readable errcode="160013">' in data
   182     return '<m:human-readable errcode="160013">' in data
   183 
   183 
   184 protomap = {'http': httpcheck,
   184 protomap = {'http': httpcheck,