Mercurial > hg
comparison tests/test-patch.t @ 33972:b1f75d8e887a
tests: update test-patch to pass our import checker
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 16:59:02 -0400 |
parents | 75be14993fda |
children | eb586ed5d8ce |
comparison
equal
deleted
inserted
replaced
33971:dcfa83652744 | 33972:b1f75d8e887a |
---|---|
1 $ cat > patchtool.py <<EOF | 1 $ cat > patchtool.py <<EOF |
2 > from __future__ import absolute_import, print_function | |
2 > import sys | 3 > import sys |
3 > print 'Using custom patch' | 4 > print('Using custom patch') |
4 > if '--binary' in sys.argv: | 5 > if '--binary' in sys.argv: |
5 > print '--binary found !' | 6 > print('--binary found !') |
6 > EOF | 7 > EOF |
7 | 8 |
8 $ echo "[ui]" >> $HGRCPATH | 9 $ echo "[ui]" >> $HGRCPATH |
9 $ echo "patch=$PYTHON ../patchtool.py" >> $HGRCPATH | 10 $ echo "patch=$PYTHON ../patchtool.py" >> $HGRCPATH |
10 | 11 |