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

login
register
mail settings
Submitter phabricator
Date March 14, 2018, 1:52 p.m.
Message ID <cd7dff27989788240e65f6274718cbbe@localhost.localdomain>
Download mbox | patch
Permalink /patch/29489/
State Not Applicable
Headers show

Comments

phabricator - March 14, 2018, 1:52 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6048b965e577: hghave: fix hardlink-whitelisted check on Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2846?vs=7003&id=7027

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

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




To: durin42, #hg-reviewers, yuja
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