Mercurial > hg
annotate tests/unwrap-message-id.py @ 51088:31f143448704
revlog: drop reference to docket in the inline-splitting code
revlog with a docket do not use inline revlog and do not need to split them. So
we can remove some code handling docket there.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 19 Oct 2023 01:50:07 +0200 |
parents | 6000f5b25c9b |
children |
rev | line source |
---|---|
43334
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
1 import sys |
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
2 |
44405
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
3 for line in sys.stdin: |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
4 if line.lower() in ("message-id: \n", "in-reply-to: \n"): |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
5 line = line[:-2] |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
6 print(line, end="") |