mercurial/wireproto.py
changeset 20969 7a679918ee2b
parent 20968 33d5fdd9bd99
child 21024 7731a2281cf0
--- a/mercurial/wireproto.py	Fri Apr 04 17:28:59 2014 -0700
+++ b/mercurial/wireproto.py	Fri Apr 04 17:50:44 2014 -0700
@@ -774,5 +774,12 @@
         finally:
             fp.close()
             os.unlink(tempname)
+    except util.Abort, inst:
+        # The old code we moved used sys.stderr directly.
+        # We did not changed it to minise code change.
+        # This need to be moved to something proper.
+        # Feel free to do it.
+        sys.stderr.write("abort: %s\n" % inst)
+        return pushres(0)
     except exchange.PushRaced, exc:
         return pusherr(str(exc))