Patchwork D2455: py3: use '%d' for integers instead of '%s'

login
register
mail settings
Submitter phabricator
Date Feb. 27, 2018, 12:56 p.m.
Message ID <89da7202373da27a5377fd566899ae30@localhost.localdomain>
Download mbox | patch
Permalink /patch/28446/
State Not Applicable
Headers show

Comments

phabricator - Feb. 27, 2018, 12:56 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3d58037c6ec0: py3: use &#039;%d&#039; for integers instead of &#039;%s&#039; (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2455?vs=6128&id=6161

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

AFFECTED FILES
  hgext/patchbomb.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel

Patch

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -668,7 +668,7 @@ 
         start_time = util.makedate()
 
     def genmsgid(id):
-        return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
+        return '<%s.%d@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
 
     # deprecated config: patchbomb.from
     sender = (opts.get('from') or ui.config('email', 'from') or