# HG changeset patch # User Henrik Stuart # Date 1243101445 -7200 # Node ID 4429751f5da7b8ea41973d1c81badb11ad32d890 # Parent 5726bb290bfe882f996e8b79cd32fe62e3d14339 windows: make openhardlinks work Despite the intention, openhardlinks would always evaluate to False. diff -r 5726bb290bfe -r 4429751f5da7 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: