Rev 2427: Late load pdb for breakin; fix copyright in http://sourcefrog.net/bzr/breakin
Martin Pool
mbp at sourcefrog.net
Tue Apr 17 07:57:56 BST 2007
At http://sourcefrog.net/bzr/breakin
------------------------------------------------------------
revno: 2427
revision-id: mbp at sourcefrog.net-20070417065755-lgvnd360eqfs8cfz
parent: mbp at sourcefrog.net-20070417065314-r4zeer3hcw8j77rw
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: breakin
timestamp: Tue 2007-04-17 16:57:55 +1000
message:
Late load pdb for breakin; fix copyright
modified:
bzrlib/breakin.py breakin.py-20070417043829-so46nevf978u713k-1
=== modified file 'bzrlib/breakin.py'
--- a/bzrlib/breakin.py 2007-04-17 04:39:12 +0000
+++ b/bzrlib/breakin.py 2007-04-17 06:57:55 +0000
@@ -1,10 +1,22 @@
-# Copyright (C) 2006 Canonical Ltd
-
-import pdb
-import signal
-import sys
+# Copyright (C) 2006, 2007 Canonical Ltd
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
def _debug(signal_number, interrupted_frame):
+ import pdb
+ import sys
sys.stderr.write("** SIGQUIT received, entering debugger\n"
"** Type 'c' to continue or 'q' to stop the process\n")
pdb.set_trace()
@@ -12,6 +24,5 @@
def hook_sigquit():
# when sigquit (C-\) is received go into pdb
# XXX: is this meaningful on Windows?
+ import signal
signal.signal(signal.SIGQUIT, _debug)
-
-
More information about the bazaar-commits
mailing list