comparison tests/test-largefiles-cache.t @ 33990:b4707311d982

tests: update test-largefiles-cache to pass our import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 17:15:14 -0400
parents 24849d53697d
children eb586ed5d8ce
comparison
equal deleted inserted replaced
33989:266192d4666b 33990:b4707311d982
92 92
93 Portable way to print file permissions: 93 Portable way to print file permissions:
94 94
95 $ cat > ls-l.py <<EOF 95 $ cat > ls-l.py <<EOF
96 > #!$PYTHON 96 > #!$PYTHON
97 > import sys, os 97 > from __future__ import absolute_import, print_function
98 > import os
99 > import sys
98 > path = sys.argv[1] 100 > path = sys.argv[1]
99 > print('%03o' % (os.lstat(path).st_mode & 0777)) 101 > print('%03o' % (os.lstat(path).st_mode & 0o777))
100 > EOF 102 > EOF
101 $ chmod +x ls-l.py 103 $ chmod +x ls-l.py
102 104
103 Test that files in .hg/largefiles inherit mode from .hg/store, not 105 Test that files in .hg/largefiles inherit mode from .hg/store, not
104 from file in working copy: 106 from file in working copy: