--- a/mercurial/revlog.py Sun Dec 09 17:14:38 2007 +0900
+++ b/mercurial/revlog.py Tue Dec 18 14:01:42 2007 -0600
@@ -112,8 +112,6 @@
# lazyparser is not safe to use on windows if win32 extensions not
# available. it keeps file handle open, which make it not possible
# to break hardlinks on local cloned repos.
- safe_to_use = os.name != 'nt' or (not util.is_win_9x() and
- hasattr(util, 'win32api'))
def __init__(self, dataf, size):
self.dataf = dataf
@@ -362,7 +360,7 @@
except AttributeError:
size = 0
- if lazyparser.safe_to_use and not inline and size > 1000000:
+ if util.openhardlinks() and not inline and size > 1000000:
# big index, let's parse it on demand
parser = lazyparser(fp, size)
index = lazyindex(parser)