/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/help_topics/en/rules.txt

  • Committer: Andrew Bennetts
  • Date: 2010-04-13 04:33:55 UTC
  • mfrom: (5147 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5149.
  • Revision ID: andrew.bennetts@canonical.com-20100413043355-lg3id0uwtju0k3zs
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
Rules are defined in ini file format where the sections are file glob
8
8
patterns and the contents of each section are the preferences for files
9
 
matching that pattern. For example::
 
9
matching that pattern(s). For example::
10
10
 
11
11
    [name *.bat]
12
12
    eol = dos
13
13
 
14
 
    [name *.html]
15
 
    keywords = escape
 
14
    [name *.html *.xml]
 
15
    keywords = xml_escape
16
16
 
17
17
Preferences like these are useful for commands and plugins wishing to
18
 
provide custom behaviour for selected files in selected branches.
19
 
 
 
18
provide custom behaviour for selected files.  For more information on 
 
19
end of line conversion see :doc:`eol-help`.
 
20
Keyword support is provided by the `keywords plugin
 
21
<http://doc.bazaar.canonical.com/plugins/en/keywords-plugin.html>`_.
20
22
 
21
23
Files
22
24
-----
30
32
Patterns are ordered and searching stops as soon as one matches.
31
33
As a consequence, more explicit patterns should be placed towards
32
34
the top of the file. Rule patterns use exactly the same conventions
33
 
as ignore patterns. See ``bzr help patterns`` for details.
34
 
 
35
 
Note: Patterns containing square brackets should be surrounded in
36
 
quotes to ensure they are corrected parsed.
 
35
as ignore patterns. See :doc:`patterns-help` for details.
 
36
 
 
37
.. note::
 
38
 
 
39
   Patterns containing square brackets or spaces should be
 
40
   surrounded in quotes to ensure they are correctly parsed.