Dulwich.io dulwich / 67994a0
Support setting DULWICH_PDB to have SIGQUIT trigger pdb. Jelmer Vernooń≥ 2 years ago
2 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
44 * Add really basic `dulwich.porcelain.fsck` implementation.
55 (Jelmer Vernooń≥)
66
7 * When the `DULWICH_PDB` environment variable is set, make
8 SIGQUIT open pdb in the 'dulwich' command.
79
810 BUG FIXES
911
3636 def signal_int(signal, frame):
3737 sys.exit(1)
3838
39
40 def signal_quit(signal, frame):
41 import pdb
42 pdb.set_trace()
43
44 if 'DULWICH_PDB' in os.environ:
45 signal.signal(signal.SIGQUIT, signal_quit)
3946 signal.signal(signal.SIGINT, signal_int)
4047
4148 from dulwich import porcelain