D7233: hghave: disallow symlinks on Windows

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Tue Nov 5 22:48:41 EST 2019


Closed by commit rHGe494dc63680c: hghave: disallow symlinks on Windows (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7233?vs=17562&id=17600

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7233/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7233

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -431,7 +431,8 @@
 
 @check("symlink", "symbolic links")
 def has_symlink():
-    if getattr(os, "symlink", None) is None:
+    # mercurial.windows.checklink() is a hard 'no' at the moment
+    if os.name == 'nt' or getattr(os, "symlink", None) is None:
         return False
     name = tempfile.mktemp(dir='.', prefix=tempprefix)
     try:



To: mharbison72, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel


More information about the Mercurial-devel mailing list