comparison mercurial/cmdutil.py @ 43738:0c25e3404e23

py3: use '%d' for formatting a revnum in `hg co --date` code Differential Revision: https://phab.mercurial-scm.org/D7429
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 14 Nov 2019 22:31:21 -0800
parents 9cb7f855e2fc
children a58d2361b231
comparison
equal deleted inserted replaced
43737:dc4e74d0ef96 43738:0c25e3404e23
2020 2020
2021 for ctx in walkchangerevs(repo, m, {b'rev': None}, prep): 2021 for ctx in walkchangerevs(repo, m, {b'rev': None}, prep):
2022 rev = ctx.rev() 2022 rev = ctx.rev()
2023 if rev in results: 2023 if rev in results:
2024 ui.status( 2024 ui.status(
2025 _(b"found revision %s from %s\n") 2025 _(b"found revision %d from %s\n")
2026 % (rev, dateutil.datestr(results[rev])) 2026 % (rev, dateutil.datestr(results[rev]))
2027 ) 2027 )
2028 return b'%d' % rev 2028 return b'%d' % rev
2029 2029
2030 raise error.Abort(_(b"revision matching date not found")) 2030 raise error.Abort(_(b"revision matching date not found"))