py3: use print as a function in tests/test-revert.t

Authored by pulkit.

Description

py3: use print as a function in tests/test-revert.t

This makes the test work on Python 3.

Differential Revision: https://phab.mercurial-scm.org/D4687

Details