Show More
@@ -224,6 +224,10 b' def instance(ui, path, create):' | |||||
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 |
|
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now