# HG changeset patch # User Henrik Stuart # Date 2009-05-23 17:57:25 # Node ID 4429751f5da7b8ea41973d1c81badb11ad32d890 # Parent 5726bb290bfe882f996e8b79cd32fe62e3d14339 windows: make openhardlinks work Despite the intention, openhardlinks would always evaluate to False. diff --git a/mercurial/windows.py b/mercurial/windows.py --- a/mercurial/windows.py +++ b/mercurial/windows.py @@ -68,7 +68,7 @@ def _is_win_9x(): 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: