diff mercurial/bundlerepo.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 e5f5c21f4169
children 4b71f37cbdb7
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Tue Apr 25 23:28:40 2006 +0200
+++ b/mercurial/bundlerepo.py	Tue May 02 14:30:00 2006 -0700
@@ -160,7 +160,7 @@
     def __init__(self, ui, path, bundlename):
         localrepo.localrepository.__init__(self, ui, path)
         f = open(bundlename, "rb")
-        s = os.fstat(f.fileno())
+        s = util.fstat(f)
         self.bundlefile = f
         header = self.bundlefile.read(6)
         if not header.startswith("HG"):