diff -r 3044a3fdae76 -r 6886bc0b77af mercurial/sshrepo.py --- a/mercurial/sshrepo.py Mon May 01 19:17:34 2006 +0200 +++ b/mercurial/sshrepo.py Tue May 02 14:37:55 2006 -0700 @@ -9,7 +9,7 @@ from remoterepo import * from i18n import gettext as _ from demandload import * -demandload(globals(), "hg os re stat") +demandload(globals(), "hg os re stat util") class sshrepository(remoterepository): def __init__(self, ui, path): @@ -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