tests/unwrap-message-id.py
author Joerg Sonnenberger <joerg@bec.de>
Wed, 26 Feb 2020 22:35:39 +0100
changeset 44627 947e6df4ff77
parent 44405 a1908951ca42
child 48875 6000f5b25c9b
permissions -rw-r--r--
notify: optional mail threading based on obsmarker When notify.reply is set and a changeset has a predecessor in the repository, include In-Reply-To pointing to the message-id that would have been generated for the oldest predecessor. This allows mail threading like Phabricator for common cases like rebasing changes, but will be optimal for cases like folding. Differential Revision: https://phab.mercurial-scm.org/D8172

from __future__ import absolute_import, print_function

import sys

for line in sys.stdin:
    if line.lower() in ("message-id: \n", "in-reply-to: \n"):
        line = line[:-2]
    print(line, end="")