equal
deleted
inserted
replaced
112 text = error.replace(repo.root + os.path.sep, '') |
112 text = error.replace(repo.root + os.path.sep, '') |
113 raise ErrorResponse(code, text) |
113 raise ErrorResponse(code, text) |
114 finally: |
114 finally: |
115 fp.close() |
115 fp.close() |
116 os.unlink(tempname) |
116 os.unlink(tempname) |
117 |
|
118 def stream_out(repo, req): |
|
119 req.respond(HTTP_OK, HGTYPE) |
|
120 try: |
|
121 for chunk in streamclone.stream_out(repo): |
|
122 yield chunk |
|
123 except streamclone.StreamException, inst: |
|
124 yield str(inst) |
|