Show More
@@ -202,6 +202,7 b' Filter patterns are globs by default, ro' | |||||
202 | For example, to match any file ending in ``.txt`` in the root |
|
202 | For example, to match any file ending in ``.txt`` in the root | |
203 | directory only, use the pattern ``*.txt``. To match any file ending |
|
203 | directory only, use the pattern ``*.txt``. To match any file ending | |
204 | in ``.c`` anywhere in the repository, use the pattern ``**.c``. |
|
204 | in ``.c`` anywhere in the repository, use the pattern ``**.c``. | |
|
205 | For each file only the first matching filter applies. | |||
205 |
|
206 | |||
206 | The filter command can start with a specifier, either ``pipe:`` or |
|
207 | The filter command can start with a specifier, either ``pipe:`` or | |
207 | ``tempfile:``. If no specifier is given, ``pipe:`` is used by default. |
|
208 | ``tempfile:``. If no specifier is given, ``pipe:`` is used by default. |
@@ -4,34 +4,40 b' hg init' | |||||
4 |
|
4 | |||
5 | cat > .hg/hgrc <<EOF |
|
5 | cat > .hg/hgrc <<EOF | |
6 | [encode] |
|
6 | [encode] | |
|
7 | not.gz = tr a-z A-Z | |||
7 | *.gz = gzip -d |
|
8 | *.gz = gzip -d | |
8 |
|
9 | |||
9 | [decode] |
|
10 | [decode] | |
|
11 | not.gz = tr A-Z a-z | |||
10 | *.gz = gzip |
|
12 | *.gz = gzip | |
11 |
|
13 | |||
12 | EOF |
|
14 | EOF | |
13 |
|
15 | |||
14 | echo "this is a test" | gzip > a.gz |
|
16 | echo "this is a test" | gzip > a.gz | |
15 | hg add a.gz |
|
17 | echo "this is a test" > not.gz | |
|
18 | hg add * | |||
16 | hg ci -m "test" -d "1000000 0" |
|
19 | hg ci -m "test" -d "1000000 0" | |
17 | echo %% no changes |
|
20 | echo %% no changes | |
18 | hg status |
|
21 | hg status | |
19 |
touch |
|
22 | touch * | |
20 |
|
23 | |||
21 | echo %% no changes |
|
24 | echo %% no changes | |
22 | hg status |
|
25 | hg status | |
23 |
|
26 | |||
24 |
echo %% |
|
27 | echo %% check contents in repo are encoded | |
25 | hg debugdata .hg/store/data/a.gz.d 0 |
|
28 | hg debugdata .hg/store/data/a.gz.d 0 | |
|
29 | hg debugdata .hg/store/data/not.gz.d 0 | |||
26 |
|
30 | |||
27 | echo %% uncompress our working dir copy |
|
31 | echo %% check committed content was decoded | |
28 | gunzip < a.gz |
|
32 | gunzip < a.gz | |
|
33 | cat not.gz | |||
29 |
|
34 | |||
30 | rm a.gz |
|
35 | rm * | |
31 | hg co -C |
|
36 | hg co -C | |
32 |
|
37 | |||
33 |
echo %% |
|
38 | echo %% check decoding of our new working dir copy | |
34 | gunzip < a.gz |
|
39 | gunzip < a.gz | |
|
40 | cat not.gz | |||
35 |
|
41 | |||
36 | echo %% check hg cat operation |
|
42 | echo %% check hg cat operation | |
37 | hg cat a.gz |
|
43 | hg cat a.gz |
@@ -1,11 +1,14 b'' | |||||
1 | %% no changes |
|
1 | %% no changes | |
2 | %% no changes |
|
2 | %% no changes | |
3 |
%% |
|
3 | %% check contents in repo are encoded | |
|
4 | this is a test | |||
|
5 | THIS IS A TEST | |||
|
6 | %% check committed content was decoded | |||
4 | this is a test |
|
7 | this is a test | |
5 | %% uncompress our working dir copy |
|
|||
6 | this is a test |
|
8 | this is a test | |
7 |
|
|
9 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
8 |
%% |
|
10 | %% check decoding of our new working dir copy | |
|
11 | this is a test | |||
9 | this is a test |
|
12 | this is a test | |
10 | %% check hg cat operation |
|
13 | %% check hg cat operation | |
11 | this is a test |
|
14 | this is a test |
General Comments 0
You need to be logged in to leave comments.
Login now