tests/unwrap-message-id.py
author Simon Sapin <simon.sapin@octobus.net>
Tue, 12 Jan 2021 18:36:22 +0100
changeset 46228 e73b40c790ec
parent 44405 a1908951ca42
child 48875 6000f5b25c9b
permissions -rw-r--r--
rhg: use a release-mode executable in tests This allows the rhg build for test-rhg.t to share compiled dependencies such as hg-core with the hg-cpython build for other tests. For context, my wrapper script for the typical edit-compile-test cycle now looks like this: (cd rust && cargo +nightly-2020-10-04 fmt) (cd rust && cargo build --release -p rhg) make --silent local PURE=--rust python test/run-tests.py --local "$@" Differential Revision: https://phab.mercurial-scm.org/D9728

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