view tests/helper-killhook.py @ 48581:4f01821fa0ec stable

unamend: error out when running on merge commit It's better to error out than to produce a bad commit. We do that same in `hg uncommit`. I haven't looked into how much work it is to make them work instead. Differential Revision: https://phab.mercurial-scm.org/D12087
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 24 Jan 2022 21:17:04 -0800
parents 21ed126bab53
children
line wrap: on
line source

import os


def killme(ui, repo, hooktype, **wkargs):
    os._exit(80)