tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 07 Dec 2021 23:49:35 +0100
changeset 48462 5bc3ce09c872
parent 44405 a1908951ca42
child 48875 6000f5b25c9b
permissions -rw-r--r--
test: simplify `debugformat` matching in test-copies-chain-merge This will make the test less sensible to unrelated format changing. Differential Revision: https://phab.mercurial-scm.org/D11893

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="")