Catch SIGHUP
This should reduce the chance that a repo we're connected to via ssh
gets interrupted without doing rollback.
--- a/mercurial/commands.py Wed Jul 06 22:25:40 2005 -0800
+++ b/mercurial/commands.py Wed Jul 06 22:27:07 2005 -0800
@@ -1199,6 +1199,7 @@
def dispatch(args):
signal.signal(signal.SIGTERM, catchterm)
+ signal.signal(signal.SIGHUP, catchterm)
try:
cmd, func, args, options, cmdoptions = parse(args)