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