##// END OF EJS Templates
wireproto: redirect the output earlier
Benoit Boissinot -
r12702:f747c085 default
parent child Browse files
Show More
@@ -281,6 +281,8 b' def unbundle(repo, proto, heads):'
281 281 heads = repo.heads()
282 282 return their_heads == ['force'] or their_heads == heads
283 283
284 proto.redirect()
285
284 286 # fail early if possible
285 287 if not check_heads():
286 288 return 'unsynced changes'
@@ -289,7 +291,6 b' def unbundle(repo, proto, heads):'
289 291 fd, tempname = tempfile.mkstemp(prefix='hg-unbundle-')
290 292 fp = os.fdopen(fd, 'wb+')
291 293 r = 0
292 proto.redirect()
293 294 try:
294 295 proto.getfile(fp)
295 296 lock = repo.lock()
General Comments 0
You need to be logged in to leave comments. Login now