Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
2129:e5f5c21f4169 | 2176:9b42304d9896 |
---|---|
55 ui.debug(_("remote: "), l1) | 55 ui.debug(_("remote: "), l1) |
56 raise hg.RepoError(_("no response from remote hg")) | 56 raise hg.RepoError(_("no response from remote hg")) |
57 | 57 |
58 def readerr(self): | 58 def readerr(self): |
59 while 1: | 59 while 1: |
60 size = os.fstat(self.pipee.fileno())[stat.ST_SIZE] | 60 size = util.fstat(self.pipee).st_size |
61 if size == 0: break | 61 if size == 0: break |
62 l = self.pipee.readline() | 62 l = self.pipee.readline() |
63 if not l: break | 63 if not l: break |
64 self.ui.status(_("remote: "), l) | 64 self.ui.status(_("remote: "), l) |
65 | 65 |