/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: Xavier Maillard
  • Date: 2008-03-26 06:21:48 UTC
  • mto: (3322.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3323.
  • Revision ID: xma@gnu.org-20080326062148-f7mnwvttv4oq8013
Add mail-mode GNU Emacs mail package as a mail_client option.
    
Idea and original code by Bojan Nikolic modified in this way:
    
1. define a different python class EmacsMailMode
2. use mail-mode package instead of message-mode. mail-mode is the
   default mail mode in GNU Emacs.
3. put the patch as a MIME attachment (see NOTE)
4. add tests as required to fulfil merge strategy requirements
    
To use this option, just put these lines into ~/.bazaar/bazaar.conf
    
[DEFAULT]
mail_client = emacs-mailmode

NOTE: this will work only for GNU Emacs version from 22.1 and superior.
      The MIME attachment is handled by etach[1] package. Just put
      etach.el into your `load-path'. GNU Emacs is not shipped with a
      simple MIME package thus the need of a simple and reliable
      alternative (etach does both reading and writing of MIME objects).

[1] http://rulnick.com/etach/download

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Rules
2
 
=====
3
 
 
4
 
Introduction
5
 
------------
6
 
 
7
 
Rules are defined in ini file format where the sections are file glob
8
 
patterns and the contents of each section are the preferences for files
9
 
matching that pattern(s). For example::
10
 
 
11
 
    [name *.bat]
12
 
    eol = dos
13
 
 
14
 
    [name *.html *.xml]
15
 
    keywords = xml_escape
16
 
 
17
 
Preferences like these are useful for commands and plugins wishing to
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>`_.
22
 
 
23
 
Files
24
 
-----
25
 
 
26
 
Default rules for all branches are defined in the optional file
27
 
``BZR_HOME/rules``. 
28
 
 
29
 
Rule Patterns
30
 
-------------
31
 
 
32
 
Patterns are ordered and searching stops as soon as one matches.
33
 
As a consequence, more explicit patterns should be placed towards
34
 
the top of the file. Rule patterns use exactly the same conventions
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.