diff -r 3044a3fdae76 -r 6886bc0b77af mercurial/revlog.py --- a/mercurial/revlog.py Mon May 01 19:17:34 2006 +0200 +++ b/mercurial/revlog.py Tue May 02 14:37:55 2006 -0700 @@ -14,7 +14,7 @@ from i18n import gettext as _ from demandload import demandload demandload(globals(), "binascii changegroup errno heapq mdiff os") -demandload(globals(), "sha struct zlib") +demandload(globals(), "sha struct util zlib") # revlog version strings REVLOGV0 = 0 @@ -322,7 +322,7 @@ i = "" else: try: - st = os.fstat(f.fileno()) + st = util.fstat(f) except AttributeError, inst: st = None else: