comparison doc/hgrc.5.txt @ 1258:1945754e466b

Add file encoding/decoding support
author mpm@selenic.com
date Thu, 15 Sep 2005 02:59:16 -0500
parents a425bb927ede
children a6ffcebd3315 2073e5a71008
comparison
equal deleted inserted replaced
1256:8054fdb0b145 1258:1945754e466b
58 -------- 58 --------
59 59
60 This section describes the different sections that may appear in a 60 This section describes the different sections that may appear in a
61 Mercurial "hgrc" file, the purpose of each section, its possible 61 Mercurial "hgrc" file, the purpose of each section, its possible
62 keys, and their possible values. 62 keys, and their possible values.
63
64 decode/encode::
65 Filters for transforming files on checkout/checkin. This would
66 typically be used for newline processing or other
67 localization/canonicalization of files.
68
69 Filters consist of a filter pattern followed by a filter command.
70 The command must accept data on stdin and return the transformed
71 data on stdout.
72
73 Example:
74
75 [encode]
76 # uncompress gzip files on checkin to improve delta compression
77 # note: not necessarily a good idea, just an example
78 *.gz = gunzip
79
80 [decode]
81 # recompress gzip files when writing them to the working dir
82 *.gz = gzip
63 83
64 hooks:: 84 hooks::
65 Commands that get automatically executed by various actions such as 85 Commands that get automatically executed by various actions such as
66 starting or finishing a commit. 86 starting or finishing a commit.
67 changegroup;; 87 changegroup;;