Show More
@@ -20,8 +20,17 approximates the behavior of code format | |||||
20 | > return re.sub(b' +', b' ', text.upper()) |
|
20 | > return re.sub(b' +', b' ', text.upper()) | |
21 | > stdout.write(format(stdin.read())) |
|
21 | > stdout.write(format(stdin.read())) | |
22 | > EOF |
|
22 | > EOF | |
|
23 | ||||
23 | $ chmod +x some/dir/uppercase.py |
|
24 | $ chmod +x some/dir/uppercase.py | |
24 |
|
25 | |||
|
26 | #if windows | |||
|
27 | $ cat > some/dir/uppercase.bat <<EOF | |||
|
28 | > @echo off | |||
|
29 | > "$PYTHON" "$TESTTMP/test-repo/some/dir/uppercase.py" | |||
|
30 | > EOF | |||
|
31 | #else | |||
|
32 | $ mv some/dir/uppercase.py some/dir/uppercase | |||
|
33 | #endif | |||
25 |
|
34 | |||
26 | $ echo babar > babar.txt |
|
35 | $ echo babar > babar.txt | |
27 | $ hg add babar.txt |
|
36 | $ hg add babar.txt | |
@@ -36,7 +45,7 Using absolute paths | |||||
36 | > evolution.allowunstable=True |
|
45 | > evolution.allowunstable=True | |
37 | > [fix] |
|
46 | > [fix] | |
38 | > extra-bin-paths=$TESTTMP/test-repo/some/dir/ |
|
47 | > extra-bin-paths=$TESTTMP/test-repo/some/dir/ | |
39 |
> uppercase-whole-file:command=uppercase |
|
48 | > uppercase-whole-file:command=uppercase | |
40 | > uppercase-whole-file:pattern=set:**.txt |
|
49 | > uppercase-whole-file:pattern=set:**.txt | |
41 | > EOF |
|
50 | > EOF | |
42 |
|
51 |
General Comments 0
You need to be logged in to leave comments.
Login now