Catch SIGHUP
This should reduce the chance that a repo we're connected to via ssh
gets interrupted without doing rollback.
#!/bin/shhg inittouch ahg add ahg ci -t "a" -u test -d "0 0"echo 123 > bhg add bhg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/"hg diff -r tip | sed "s/\(\(---\|+++\).*\)\t.*/\1/"