comparison mercurial/hgweb/protocol.py @ 8109:496ae1ea4698

switch lock releasing in the core from gc to explicit
author Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
date Wed, 22 Apr 2009 02:01:22 +0200
parents f96c20e9b56a
children 46293a0c7e9f
comparison
equal deleted inserted replaced
8108:a26d33749bd8 8109:496ae1ea4698
161 val = sys.stdout.getvalue() 161 val = sys.stdout.getvalue()
162 sys.stdout, sys.stderr = oldio 162 sys.stdout, sys.stderr = oldio
163 req.respond(HTTP_OK, HGTYPE) 163 req.respond(HTTP_OK, HGTYPE)
164 return '%d\n%s' % (ret, val), 164 return '%d\n%s' % (ret, val),
165 finally: 165 finally:
166 del lock 166 lock.release()
167 except ValueError, inst: 167 except ValueError, inst:
168 raise ErrorResponse(HTTP_OK, inst) 168 raise ErrorResponse(HTTP_OK, inst)
169 except (OSError, IOError), inst: 169 except (OSError, IOError), inst:
170 filename = getattr(inst, 'filename', '') 170 filename = getattr(inst, 'filename', '')
171 # Don't send our filesystem layout to the client 171 # Don't send our filesystem layout to the client