tests/unwrap-message-id.py
author Martin von Zweigbergk <martinvonz@google.com>
Tue, 12 Apr 2022 21:25:56 -0700
changeset 49144 399439c12223
parent 48966 6000f5b25c9b
permissions -rw-r--r--
rust-revlog: make unaware of `Repo` Differential Revision: https://phab.mercurial-scm.org/D12547

import sys

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