##// 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 heads = repo.heads()
281 heads = repo.heads()
282 return their_heads == ['force'] or their_heads == heads
282 return their_heads == ['force'] or their_heads == heads
283
283
284 proto.redirect()
285
284 # fail early if possible
286 # fail early if possible
285 if not check_heads():
287 if not check_heads():
286 return 'unsynced changes'
288 return 'unsynced changes'
@@ -289,7 +291,6 b' def unbundle(repo, proto, heads):'
289 fd, tempname = tempfile.mkstemp(prefix='hg-unbundle-')
291 fd, tempname = tempfile.mkstemp(prefix='hg-unbundle-')
290 fp = os.fdopen(fd, 'wb+')
292 fp = os.fdopen(fd, 'wb+')
291 r = 0
293 r = 0
292 proto.redirect()
293 try:
294 try:
294 proto.getfile(fp)
295 proto.getfile(fp)
295 lock = repo.lock()
296 lock = repo.lock()
General Comments 0
You need to be logged in to leave comments. Login now