diff mercurial/sshrepo.py @ 2176:9b42304d9896

fix file handling bugs on windows. add util.posixfile class that has posix semantics on windows. fix util.rename so it works with stupid windows delete semantics.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 02 May 2006 14:30:00 -0700
parents d14497cbd668
children 6886bc0b77af
line wrap: on
line diff
--- a/mercurial/sshrepo.py	Tue Apr 25 23:28:40 2006 +0200
+++ b/mercurial/sshrepo.py	Tue May 02 14:30:00 2006 -0700
@@ -57,7 +57,7 @@
 
     def readerr(self):
         while 1:
-            size = os.fstat(self.pipee.fileno())[stat.ST_SIZE]
+            size = util.fstat(self.pipee).st_size
             if size == 0: break
             l = self.pipee.readline()
             if not l: break