comparison rhodecode/lib/vcs/backends/git/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 fd5f2b217488
comparison
equal deleted inserted replaced
2705:bf177b4981c3 2706:22f79562836c
174 try: 174 try:
175 resp = o.open(req) 175 resp = o.open(req)
176 return resp.code == 200 176 return resp.code == 200
177 except Exception, e: 177 except Exception, e:
178 # means it cannot be cloned 178 # means it cannot be cloned
179 raise urllib2.URLError(e) 179 raise urllib2.URLError("[%s] %s" % (url, e))
180 180
181 def _get_repo(self, create, src_url=None, update_after_clone=False, 181 def _get_repo(self, create, src_url=None, update_after_clone=False,
182 bare=False): 182 bare=False):
183 if create and os.path.exists(self.path): 183 if create and os.path.exists(self.path):
184 raise RepositoryError("Location already exist") 184 raise RepositoryError("Location already exist")