comparison tests/testlib/ext-phase-report.py @ 48875:6000f5b25c9b

py2: remove simple from __future__ statements These were needed for Python 2 support. Now that our linter no longer mandates these, we can start deleting them. Differential Revision: https://phab.mercurial-scm.org/D12254
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 03 Mar 2022 17:34:00 +0100
parents fdc802f29b2c
children
comparison
equal deleted inserted replaced
48874:af0b21d5a930 48875:6000f5b25c9b
1 # tiny extension to report phase changes during transaction 1 # tiny extension to report phase changes during transaction
2
3 from __future__ import absolute_import
4 2
5 3
6 def reposetup(ui, repo): 4 def reposetup(ui, repo):
7 def reportphasemove(tr): 5 def reportphasemove(tr):
8 for revs, move in sorted(tr.changes[b"phases"], key=lambda r: r[0][0]): 6 for revs, move in sorted(tr.changes[b"phases"], key=lambda r: r[0][0]):