Patchwork D7429: py3: use '%d' for formatting a revnum in `hg co --date` code

login
register
mail settings
Submitter phabricator
Date Nov. 15, 2019, 7:43 a.m.
Message ID <differential-rev-PHID-DREV-fwfr2omttj35np2esdkq-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43269/
State Superseded
Headers show

Comments

phabricator - Nov. 15, 2019, 7:43 a.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D7429

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -2022,7 +2022,7 @@ 
         rev = ctx.rev()
         if rev in results:
             ui.status(
-                _(b"found revision %s from %s\n")
+                _(b"found revision %d from %s\n")
                 % (rev, dateutil.datestr(results[rev]))
             )
             return b'%d' % rev