author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
Mon, 11 Oct 2010 12:44:33 -0500 | |
changeset 12702 | f747c085b789 |
parent 12701 | cb9e1d1c34ea |
child 12703 | 40bb5853fc4b |
--- a/mercurial/wireproto.py Mon Oct 11 12:44:11 2010 -0500 +++ b/mercurial/wireproto.py Mon Oct 11 12:44:33 2010 -0500 @@ -281,6 +281,8 @@ heads = repo.heads() return their_heads == ['force'] or their_heads == heads + proto.redirect() + # fail early if possible if not check_heads(): return 'unsynced changes' @@ -289,7 +291,6 @@ fd, tempname = tempfile.mkstemp(prefix='hg-unbundle-') fp = os.fdopen(fd, 'wb+') r = 0 - proto.redirect() try: proto.getfile(fp) lock = repo.lock()