/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/breakin.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
 
17
from __future__ import absolute_import
 
18
 
17
19
import os
18
20
import signal
19
21
 
26
28
    import pdb
27
29
    import sys
28
30
    sys.stderr.write("** %s received, entering debugger\n"
29
 
                     "** Type 'c' to continue or 'q' to stop the process\n"
30
 
                     "** Or %s again to quit (and possibly dump core)\n"
31
 
                     % (_breakin_signal_name, _breakin_signal_name))
 
31
            "** Type 'c' to continue or 'q' to stop the process\n"
 
32
            "** Or %s again to quit (and possibly dump core)\n"
 
33
            % (_breakin_signal_name, _breakin_signal_name))
32
34
    # It seems that on Windows, when sys.stderr is to a PIPE, then we need to
33
35
    # flush. Not sure why it is buffered, but that seems to be the case.
34
36
    sys.stderr.flush()
70
72
    """
71
73
 
72
74
    # when sigquit (C-\) or sigbreak (C-Pause) is received go into pdb
73
 
    if os.environ.get('BRZ_SIGQUIT_PDB', '1') == '0':
 
75
    if os.environ.get('BZR_SIGQUIT_PDB', '1') == '0':
74
76
        # User explicitly requested we don't support this
75
77
        return
76
78
    sig = determine_signal()