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

  • Committer: Breezy landing bot
  • Author(s): Colin Watson
  • Date: 2020-11-16 21:47:08 UTC
  • mfrom: (7521.1.1 remove-lp-workaround)
  • Revision ID: breezy.the.bot@gmail.com-20201116214708-jos209mgxi41oy15
Remove breezy.git workaround for bazaar.launchpad.net.

Merged from https://code.launchpad.net/~cjwatson/brz/remove-lp-workaround/+merge/393710

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
 
~/.bazaar/bazaar.conf debug_flags.
 
20
~/.config/breezy/breezy.conf debug_flags.
21
21
 
22
 
See `bzr help debug-flags` or `bzrlib/help_topics/en/debug-flags.txt`
 
22
See `bzr help debug-flags` or `breezy/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
 
 
28
26
debug_flags = set()
29
27
 
30
28
 
31
29
def set_debug_flags_from_config():
32
30
    """Turn on debug flags based on the global configuration"""
33
31
 
34
 
    from bzrlib import config
 
32
    from breezy import config
35
33
 
36
34
    c = config.GlobalStack()
37
35
    for f in c.get('debug_flags'):
51
49
 
52
50
    you can do:
53
51
 
54
 
       from bzrlib import debug; debug.set_trace()
 
52
       from breezy import debug; debug.set_trace()
55
53
    """
56
54
    import pdb
57
55
    import sys