Mercurial > kallithea
diff rhodecode/lib/vcs/backends/hg/repository.py @ 2706:22f79562836c beta
Fixed validators for remote repos
- use proper httppeer repo for mercurial 2.3
- validate git repos for remote auth
- docs updates
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 08 Aug 2012 22:37:40 +0200 |
parents | 959d0daa44da |
children | 32471bd1f4ee |
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/hg/repository.py Wed Aug 08 22:35:05 2012 +0200 +++ b/rhodecode/lib/vcs/backends/hg/repository.py Wed Aug 08 22:37:40 2012 +0200 @@ -300,7 +300,7 @@ return resp.code == 200 except Exception, e: # means it cannot be cloned - raise urllib2.URLError(e) + raise urllib2.URLError("[%s] %s" % (url, e)) def _get_repo(self, create, src_url=None, update_after_clone=False): """ @@ -312,6 +312,7 @@ location at given clone_point. Additionally it'll make update to working copy accordingly to ``update_after_clone`` flag """ + try: if src_url: url = str(self._get_url(src_url)) @@ -325,6 +326,7 @@ # raise Abort("Got HTTP 404 error") except Exception: raise + # Don't try to create if we've already cloned repo create = False return localrepository(self.baseui, self.path, create=create)