mercurial/util_win32.py
changeset 2448 b77a2ef61b81
parent 2313 a600d9997521
child 2645 e6a41cbaa260
--- a/mercurial/util_win32.py
+++ b/mercurial/util_win32.py
@@ -162,7 +162,7 @@ def nlinks(pathname):
         fh.Close()
         return res[7]
     except pywintypes.error:
-        return os.stat(pathname).st_nlink
+        return os.lstat(pathname).st_nlink
 
 def testpid(pid):
     '''return True if pid is still running or unable to