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

login
register
mail settings
Submitter phabricator
Date Nov. 19, 2019, 3:50 a.m.
Message ID <26e5430eca3fab451fff133097a43f97@localhost.localdomain>
Download mbox | patch
Permalink /patch/43344/
State Not Applicable
Headers show

Comments

phabricator - Nov. 19, 2019, 3:50 a.m.
Closed by commit rHG0c25e3404e23: py3: use &#039;%d&#039; for formatting a revnum in `hg co --date` code (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7429?vs=18155&id=18221

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7429/new/

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

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
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