D5096: py3: fix test-hardlinks.t

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sun Oct 14 12:58:49 UTC 2018


durin42 added inline comments.

INLINE COMMENTS

> test-hardlinks.t:23
>    > from mercurial import util
> -  > util.copyfiles(sys.argv[1], sys.argv[2], hardlink=True)
> +  > util.copyfiles(sys.argv[1].encode(), sys.argv[2].encode(), hardlink=True)
>    > EOF

I believe these should both use pycompat.fsencode() instead.

REPOSITORY
  rHG Mercurial

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

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


More information about the Mercurial-devel mailing list