tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 01 Dec 2022 01:34:58 +0100
changeset 49699 54e98a88542b
parent 48875 6000f5b25c9b
permissions -rw-r--r--
path: directly use the push_variant in `hg outgoing` We don't need any extra processing now.

import sys

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