##// END OF EJS Templates
log: have changesetformatter fill in wdir() rev and node (BC)...
log: have changesetformatter fill in wdir() rev and node (BC) This matches the behavior of the default template keywords. wdir() support is still experimental so we can change the output.

File last commit:

r35674:c9eb92fb default
r39831:ba93db17 default
Show More
showstack.py
22 lines | 596 B | text/x-python | PythonLexer
Matt Mackall
contrib: add showstack extension...
r26123 # showstack.py - extension to dump a Python stack trace on signal
#
# binds to both SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs)
Boris Feld
showstack: add an extension docstring...
r35674 """dump stack trace when receiving SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs)
"""
Matt Mackall
contrib: add showstack extension...
r26123
Pulkit Goyal
showstack: use absolute_import
r28522 from __future__ import absolute_import
import signal
import sys
import traceback
Matt Mackall
contrib: add showstack extension...
r26123
def sigshow(*args):
sys.stderr.write("\n")
traceback.print_stack(args[1], limit=10, file=sys.stderr)
sys.stderr.write("----\n")
def extsetup(ui):
signal.signal(signal.SIGQUIT, sigshow)
try:
signal.signal(signal.SIGINFO, sigshow)
except AttributeError:
pass