changeset 40332:e0dea186ab6e

py3: fix test-hardlinks.t Differential Revision: https://phab.mercurial-scm.org/D5096
author Mark Thomas <mbthomas@fb.com>
date Sun, 14 Oct 2018 09:34:21 +0000
parents ac59de55c8b4
children d5ff54152636
files contrib/python3-whitelist tests/test-hardlinks.t
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Fri Sep 14 14:56:13 2018 -0700
+++ b/contrib/python3-whitelist	Sun Oct 14 09:34:21 2018 +0000
@@ -214,6 +214,7 @@
 test-gpg.t
 test-graft.t
 test-grep.t
+test-hardlinks.t
 test-hg-parseurl.py
 test-hghave.t
 test-hgignore.t
--- a/tests/test-hardlinks.t	Fri Sep 14 14:56:13 2018 -0700
+++ b/tests/test-hardlinks.t	Sun Oct 14 09:34:21 2018 +0000
@@ -19,8 +19,9 @@
   $ cat > linkcp.py <<EOF
   > from __future__ import absolute_import
   > import sys
-  > from mercurial import util
-  > util.copyfiles(sys.argv[1], sys.argv[2], hardlink=True)
+  > from mercurial import pycompat, util
+  > util.copyfiles(pycompat.fsencode(sys.argv[1]),
+  >                pycompat.fsencode(sys.argv[2]), hardlink=True)
   > EOF
 
   $ linkcp()