comparison tests/test-addremove-similar.t @ 29174:478e2b85fcce

tests: test-addremove-similar.t use print() for py3
author timeless <timeless@mozdev.org>
date Fri, 06 May 2016 01:15:07 +0000
parents 56b2bcea2529
children 3a383caa97f4
comparison
equal deleted inserted replaced
29173:fa9fae9a9372 29174:478e2b85fcce
1 $ hg init rep; cd rep 1 $ hg init rep; cd rep
2 2
3 $ touch empty-file 3 $ touch empty-file
4 $ $PYTHON -c 'for x in range(10000): print x' > large-file 4 $ $PYTHON -c 'for x in range(10000): print(x)' > large-file
5 5
6 $ hg addremove 6 $ hg addremove
7 adding empty-file 7 adding empty-file
8 adding large-file 8 adding large-file
9 9
10 $ hg commit -m A 10 $ hg commit -m A
11 11
12 $ rm large-file empty-file 12 $ rm large-file empty-file
13 $ $PYTHON -c 'for x in range(10,10000): print x' > another-file 13 $ $PYTHON -c 'for x in range(10,10000): print(x)' > another-file
14 14
15 $ hg addremove -s50 15 $ hg addremove -s50
16 adding another-file 16 adding another-file
17 removing empty-file 17 removing empty-file
18 removing large-file 18 removing large-file
32 32
33 $ cd .. 33 $ cd ..
34 34
35 $ hg init rep2; cd rep2 35 $ hg init rep2; cd rep2
36 36
37 $ $PYTHON -c 'for x in range(10000): print x' > large-file 37 $ $PYTHON -c 'for x in range(10000): print(x)' > large-file
38 $ $PYTHON -c 'for x in range(50): print x' > tiny-file 38 $ $PYTHON -c 'for x in range(50): print(x)' > tiny-file
39 39
40 $ hg addremove 40 $ hg addremove
41 adding large-file 41 adding large-file
42 adding tiny-file 42 adding tiny-file
43 43
44 $ hg commit -m A 44 $ hg commit -m A
45 45
46 $ $PYTHON -c 'for x in range(70): print x' > small-file 46 $ $PYTHON -c 'for x in range(70): print(x)' > small-file
47 $ rm tiny-file 47 $ rm tiny-file
48 $ rm large-file 48 $ rm large-file
49 49
50 $ hg addremove -s50 50 $ hg addremove -s50
51 removing large-file 51 removing large-file