upgrade: move `printrequirements()` to UpgradeOperation class
Part of refactor where we make things more arranged and integrated into single
`UpgradeOperation` class.
Differential Revision: https://phab.mercurial-scm.org/D9577
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="")