~bzr-pqm/bzr/bzr.dev

2095.5.2 by Martin Pool
save commit message if commit fails (#32054)
1
# Copyright (C) 2005, 2006 Canonical Ltd
2
#
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
17
2749.2.1 by Ian Clatworthy
(Ian Clatworthy)(trivial) Add comment to debug.py re keeping global-options help in sync.
18
# NOTE: If update these, please also update the help for global-options in
19
#       bzrlib/help_topics.py.
20
2095.5.2 by Martin Pool
save commit message if commit fails (#32054)
21
debug_flags = set()
2555.3.22 by Martin Pool
hook docs
22
"""Set of flags that enable different debug behaviour.
23
24
These are set with eg ``-Dlock`` on the bzr command line.
25
26
Options include:
2725.1.1 by Robert Collins
Add -Devil flag to highlight the use of problematic API calls.
27
 
2900.2.10 by Vincent Ladeuil
Add -Dauth handling.
28
 * auth - show authentication sections used
29
 * error - show stack traces for all top level exceptions
2725.1.1 by Robert Collins
Add -Devil flag to highlight the use of problematic API calls.
30
 * evil - capture call sites that do expensive or badly-scaling operations.
2592.3.91 by Robert Collins
Incrementally closing in on a correct fetch for packs.
31
 * fetch - trace history copying between repositories
2749.2.1 by Ian Clatworthy
(Ian Clatworthy)(trivial) Add comment to debug.py re keeping global-options help in sync.
32
 * hooks - trace hook execution
2593.3.1 by Andrew Bennetts
Add a -Dhpss debug flag.
33
 * hpss - trace smart protocol requests and responses
2624.2.15 by Robert Collins
Add useful -Dindex flag.
34
 * index - trace major index operations
2555.3.22 by Martin Pool
hook docs
35
 * lock - trace when lockdir locks are taken or released
36
37
"""