D2846: hghave: fix hardlink-whitelisted check on Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Tue Mar 13 22:14:37 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2846
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
@@ -372,7 +372,7 @@
def has_hardlink_whitelisted():
from mercurial import util
try:
- fstype = util.getfstype('.')
+ fstype = util.getfstype(b'.')
except OSError:
return False
return fstype in util._hardlinkfswhitelist
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list