tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 03 May 2021 12:29:09 +0200
changeset 47233 c2180093682a
parent 44432 a1908951ca42
child 48966 6000f5b25c9b
permissions -rw-r--r--
revlog: determine sidedata support based on the revlog version Revlog version "2" support sidedata, previous version does not. So lets make the initialization simpler. Differential Revision: https://phab.mercurial-scm.org/D10613

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