comparison contrib/showstack.py @ 35656:c9eb92fb87b7

showstack: add an extension docstring Now, running `hg help showstack` will give details on how to use the extension.
author Boris Feld <boris.feld@octobus.net>
date Sun, 10 Dec 2017 21:42:33 +0100
parents f2fe7b199bb4
children acf5dbe39478
comparison
equal deleted inserted replaced
35655:2f54a3e228ff 35656:c9eb92fb87b7
1 # showstack.py - extension to dump a Python stack trace on signal 1 # showstack.py - extension to dump a Python stack trace on signal
2 # 2 #
3 # binds to both SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs) 3 # binds to both SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs)
4 """dump stack trace when receiving SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs)
5 """
4 6
5 from __future__ import absolute_import 7 from __future__ import absolute_import
6 import signal 8 import signal
7 import sys 9 import sys
8 import traceback 10 import traceback