comparison mercurial/httprepo.py @ 14148:cc9366a3751b

httprepo: use the original exception after falling back to static-http failed Before the fine exception handling in httprepo was never shown. The static-http exception will now only be shown when static-http is requested explicitly.
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 07 Mar 2011 22:50:55 +0100
parents d10c6835497e
children 091c86a77d19
comparison
equal deleted inserted replaced
14147:617483af1cc0 14148:cc9366a3751b
222 inst._fetchcaps() 222 inst._fetchcaps()
223 except error.RepoError: 223 except error.RepoError:
224 # No luck, try older compatibility check. 224 # No luck, try older compatibility check.
225 inst.between([(nullid, nullid)]) 225 inst.between([(nullid, nullid)])
226 return inst 226 return inst
227 except error.RepoError: 227 except error.RepoError, httpexception:
228 ui.note('(falling back to static-http)\n') 228 try:
229 return statichttprepo.instance(ui, "static-" + path, create) 229 r = statichttprepo.instance(ui, "static-" + path, create)
230 ui.note('(falling back to static-http)\n')
231 return r
232 except error.RepoError:
233 raise httpexception # use the original http RepoError instead