# HG changeset patch # User Mads Kiilerich # Date 1262658045 -3600 # Node ID a474f950357be8acb8704f46b4443872d0461feb # Parent 43f8abcec42df991ba6a953c9b1fa28be2e5d66d Update test and man page for multiple matching encode/decode filters diff -r 43f8abcec42d -r a474f950357b doc/hgrc.5.txt --- a/doc/hgrc.5.txt Tue Jan 05 15:07:38 2010 -0500 +++ b/doc/hgrc.5.txt Tue Jan 05 03:20:45 2010 +0100 @@ -202,6 +202,7 @@ For example, to match any file ending in ``.txt`` in the root directory only, use the pattern ``*.txt``. To match any file ending in ``.c`` anywhere in the repository, use the pattern ``**.c``. +For each file only the first matching filter applies. The filter command can start with a specifier, either ``pipe:`` or ``tempfile:``. If no specifier is given, ``pipe:`` is used by default. diff -r 43f8abcec42d -r a474f950357b tests/test-encode --- a/tests/test-encode Tue Jan 05 15:07:38 2010 -0500 +++ b/tests/test-encode Tue Jan 05 03:20:45 2010 +0100 @@ -4,34 +4,40 @@ cat > .hg/hgrc < a.gz -hg add a.gz +echo "this is a test" > not.gz +hg add * hg ci -m "test" -d "1000000 0" echo %% no changes hg status -touch a.gz +touch * echo %% no changes hg status -echo %% uncompressed contents in repo +echo %% check contents in repo are encoded hg debugdata .hg/store/data/a.gz.d 0 +hg debugdata .hg/store/data/not.gz.d 0 -echo %% uncompress our working dir copy +echo %% check committed content was decoded gunzip < a.gz +cat not.gz -rm a.gz +rm * hg co -C -echo %% uncompress our new working dir copy +echo %% check decoding of our new working dir copy gunzip < a.gz +cat not.gz echo %% check hg cat operation hg cat a.gz diff -r 43f8abcec42d -r a474f950357b tests/test-encode.out --- a/tests/test-encode.out Tue Jan 05 15:07:38 2010 -0500 +++ b/tests/test-encode.out Tue Jan 05 03:20:45 2010 +0100 @@ -1,11 +1,14 @@ %% no changes %% no changes -%% uncompressed contents in repo +%% check contents in repo are encoded +this is a test +THIS IS A TEST +%% check committed content was decoded this is a test -%% uncompress our working dir copy this is a test -1 files updated, 0 files merged, 0 files removed, 0 files unresolved -%% uncompress our new working dir copy +2 files updated, 0 files merged, 0 files removed, 0 files unresolved +%% check decoding of our new working dir copy +this is a test this is a test %% check hg cat operation this is a test