14
14
This format is compatible with Bazaar 0.15 and later.
17
* ``--quiet`` or ``-q`` is no longer a global option. If present, it
18
must now appear after the command name. Scripts doing things like
19
``bzr -q missing`` need to be rewritten as ``bzr missing -q``.
19
24
* New option ``--author`` in ``bzr commit`` to specify the author of the
32
37
Unlike global options, standard options can be used in aliases and
33
38
may have command-specific help. (Ian Clatworthy)
40
* Verbosity level processing has now been unified. If ``--verbose``
41
or ``-v`` is specified on the command line multiple times, the
42
verbosity level is made positive the first time then increased.
43
If ``--quiet`` or ``-q`` is specified on the command line
44
multiple times, the verbosity level is made negative the first
45
time then decreased. To get the default verbosity level of zero,
46
either specify none of the above , ``--no-verbose`` or ``--no-quiet``.
47
Note that most commands currently ignore the magnitude of the
48
verbosity level but do respect *quiet vs normal vs verbose* when
49
generating output. (Ian Clatworthy)
37
53
* ``bzr plugins`` now lists the version number for each plugin in square
150
166
incremental addition of data to a file without requiring that all the
151
167
data be buffered in memory. (Robert Collins)
169
* Three new methods have been added to ``bzrlib.trace``:
170
``set_verbosity_level``, ``get_verbosity_level`` and ``is_verbose``.
171
``set_verbosity_level`` expects a numeric value: negative for quiet,
172
zero for normal, positive for verbose. The size of the number can be
173
used to determine just how quiet or verbose the application should be.
174
The existing ``be_quiet`` and ``is_quiet`` routines have been
175
integrated into this new scheme. (Ian Clatworthy)
177
* Options can now be delcared with a ``custom_callback`` parameter. If
178
set, this routine is called after the option is processed. This feature
179
is now used by the standard options ``verbose`` and ``quiet`` so that
180
setting one implicitly resets the other. (Ian Clatworthy)
182
* Rather than declaring a new option from scratch in order to provide
183
custom help, a centrally registered option can be decorated using the
184
new ``bzrlib.Option.custom_help`` routine. In particular, this routine
185
is useful when declaring better help for the ``verbose`` and ``quiet``
186
standard options as the base definition of these is now more complex
187
than before thanks to their use of a custom callback. (Ian Clatworthy)
155
191
* Use UTF-8 encoded StringIO for log tests to avoid failures on