Mercurial > hg-stable
comparison tests/test-relink.t @ 40307:43f0a37bd9ed
py3: byteify extension in test-relink.t
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 14 Oct 2018 13:05:53 -0400 |
parents | 5abc47d4ca6b |
children | 42d2b31cee0b |
comparison
equal
deleted
inserted
replaced
40306:da1629c7dda1 | 40307:43f0a37bd9ed |
---|---|
9 | 9 |
10 $ cat > arelinked.py <<EOF | 10 $ cat > arelinked.py <<EOF |
11 > from __future__ import absolute_import, print_function | 11 > from __future__ import absolute_import, print_function |
12 > import os | 12 > import os |
13 > import sys | 13 > import sys |
14 > from mercurial import util | 14 > from mercurial import ( |
15 > pycompat, | |
16 > util, | |
17 > ) | |
15 > path1, path2 = sys.argv[1:3] | 18 > path1, path2 = sys.argv[1:3] |
16 > if util.samefile(path1, path2): | 19 > if util.samefile(pycompat.fsencode(path1), pycompat.fsencode(path2)): |
17 > print('%s == %s' % (path1, path2)) | 20 > print('%s == %s' % (path1, path2)) |
18 > else: | 21 > else: |
19 > print('%s != %s' % (path1, path2)) | 22 > print('%s != %s' % (path1, path2)) |
20 > EOF | 23 > EOF |
21 | 24 |