equal
deleted
inserted
replaced
136 def dispatch(repo, proto, command): |
136 def dispatch(repo, proto, command): |
137 func, spec = commands[command] |
137 func, spec = commands[command] |
138 args = proto.getargs(spec) |
138 args = proto.getargs(spec) |
139 r = func(repo, proto, *args) |
139 r = func(repo, proto, *args) |
140 if r != None: |
140 if r != None: |
141 proto.respond(r) |
141 proto.sendresponse(r) |
142 |
142 |
143 def between(repo, proto, pairs): |
143 def between(repo, proto, pairs): |
144 pairs = [decodelist(p, '-') for p in pairs.split(" ")] |
144 pairs = [decodelist(p, '-') for p in pairs.split(" ")] |
145 r = [] |
145 r = [] |
146 for b in repo.between(pairs): |
146 for b in repo.between(pairs): |
260 lock=lock) |
260 lock=lock) |
261 except util.Abort, inst: |
261 except util.Abort, inst: |
262 sys.stderr.write("abort: %s\n" % inst) |
262 sys.stderr.write("abort: %s\n" % inst) |
263 finally: |
263 finally: |
264 lock.release() |
264 lock.release() |
265 proto.respondpush(r) |
265 proto.sendpushresponse(r) |
266 |
266 |
267 finally: |
267 finally: |
268 fp.close() |
268 fp.close() |
269 os.unlink(tempname) |
269 os.unlink(tempname) |
270 |
270 |