/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 brzlib/debug.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 12:41:27 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521124127-iv8etg0vwymyai6y
s/bzr/brz/ in apport config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Set of flags that enable different debug behaviour.
18
18
 
19
19
These are set with eg ``-Dlock`` on the bzr command line or in
20
 
~/.config/breezy/breezy.conf debug_flags.
 
20
~/.bazaar/bazaar.conf debug_flags.
21
21
 
22
 
See `bzr help debug-flags` or `breezy/help_topics/en/debug-flags.txt`
 
22
See `bzr help debug-flags` or `brzlib/help_topics/en/debug-flags.txt`
23
23
for a list of the available options.
24
24
"""
25
25
 
 
26
from __future__ import absolute_import
 
27
 
26
28
debug_flags = set()
27
29
 
28
30
 
29
31
def set_debug_flags_from_config():
30
32
    """Turn on debug flags based on the global configuration"""
31
33
 
32
 
    from breezy import config
 
34
    from brzlib import config
33
35
 
34
36
    c = config.GlobalStack()
35
37
    for f in c.get('debug_flags'):
49
51
 
50
52
    you can do:
51
53
 
52
 
       from breezy import debug; debug.set_trace()
 
54
       from brzlib import debug; debug.set_trace()
53
55
    """
54
56
    import pdb
55
57
    import sys