mercurial/windows.py
changeset 24653 83f6c4733ecc
parent 24598 22f49c7dd11b
child 24692 144883a8d0d4
--- a/mercurial/windows.py	Tue Apr 07 22:30:25 2015 -0400
+++ b/mercurial/windows.py	Tue Apr 07 22:31:36 2015 -0400
@@ -363,7 +363,7 @@
     """Read all available data from a pipe."""
     chunks = []
     while True:
-        size = os.fstat(pipe.fileno()).st_size
+        size = win32.peekpipe(pipe)
         if not size:
             break