view tests/unwrap-message-id.py @ 47130:cfbbafb04037

dirstate-tree: Add a test showing that issue 6335 is fixed … when using the new status algorithm and the tree-based dirstate. The previous algorithm still has this bug. Differential Revision: https://phab.mercurial-scm.org/D10699
author Simon Sapin <simon.sapin@octobus.net>
date Fri, 07 May 2021 16:41:07 +0200
parents a1908951ca42
children 6000f5b25c9b
line wrap: on
line source

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