Mercurial > hg
comparison tests/test-relink.t @ 33988:afb33e73e515
tests: update test-relink to pass our import checker
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 17:11:30 -0400 |
parents | 75be14993fda |
children | eb586ed5d8ce |
comparison
equal
deleted
inserted
replaced
33987:ed88f90bb787 | 33988:afb33e73e515 |
---|---|
6 $ fix_path() { | 6 $ fix_path() { |
7 > tr '\\' / | 7 > tr '\\' / |
8 > } | 8 > } |
9 | 9 |
10 $ cat > arelinked.py <<EOF | 10 $ cat > arelinked.py <<EOF |
11 > import sys, os | 11 > from __future__ import absolute_import, print_function |
12 > import os | |
13 > import sys | |
12 > from mercurial import util | 14 > from mercurial import util |
13 > path1, path2 = sys.argv[1:3] | 15 > path1, path2 = sys.argv[1:3] |
14 > if util.samefile(path1, path2): | 16 > if util.samefile(path1, path2): |
15 > print '%s == %s' % (path1, path2) | 17 > print('%s == %s' % (path1, path2)) |
16 > else: | 18 > else: |
17 > print '%s != %s' % (path1, path2) | 19 > print('%s != %s' % (path1, path2)) |
18 > EOF | 20 > EOF |
19 | 21 |
20 | 22 |
21 create source repository | 23 create source repository |
22 | 24 |