Patchwork D2846: hghave: fix hardlink-whitelisted check on Python 3

login
register
mail settings
Submitter phabricator
Date March 13, 2018, 10:14 p.m.
Message ID <differential-rev-PHID-DREV-xqq6e5vc5zvs7nspsx6n-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/29462/
State Superseded
Headers show

Comments

phabricator - March 13, 2018, 10:14 p.m.
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




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

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