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

login
register
mail settings
Submitter phabricator
Date Feb. 26, 2018, 6:53 p.m.
Message ID <9c9e9d46ac8bd31cc224a639fec14fd1@localhost.localdomain>
Download mbox | patch
Permalink /patch/28414/
State Not Applicable
Headers show

Comments

phabricator - Feb. 26, 2018, 6:53 p.m.
pulkit updated this revision to Diff 6128.

REPOSITORY
  rHG Mercurial

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

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