windows: make openhardlinks work
authorHenrik Stuart <hg@hstuart.dk>
Sat, 23 May 2009 19:57:25 +0200
changeset 8559 4429751f5da7
parent 8558 5726bb290bfe
child 8561 accb1cf85c31
windows: make openhardlinks work Despite the intention, openhardlinks would always evaluate to False.
mercurial/windows.py
--- a/mercurial/windows.py	Sat May 23 11:53:23 2009 -0500
+++ b/mercurial/windows.py	Sat May 23 19:57:25 2009 +0200
@@ -68,7 +68,7 @@
         return 'command' in os.environ.get('comspec', '')
 
 def openhardlinks():
-    return not _is_win_9x and "win32api" in locals()
+    return not _is_win_9x() and "win32api" in globals()
 
 def system_rcpath():
     try: