[PATCH] windows: make openhardlinks work
Henrik Stuart
hg at hstuart.dk
Sat May 23 12:58:49 CDT 2009
# HG changeset patch
# User Henrik Stuart <hg at hstuart.dk>
# Date 1243101445 -7200
# Node ID a35f2eea80da64a40fd336d5d2f375a9bba35c50
# Parent 67f76a4463ef31d60393668c0f9d0dc28c8e25d4
windows: make openhardlinks work
Despite the intention, openhardlinks would always evaluate to False.
diff -r 67f76a4463ef -r a35f2eea80da mercurial/windows.py
--- a/mercurial/windows.py Fri May 08 12:19:57 2009 +0900
+++ 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:
More information about the Mercurial-devel
mailing list