Patchwork D6296: phabricator: set local:commits time metadata as an int, not a string

login
register
mail settings
Submitter phabricator
Date April 22, 2019, 6:24 p.m.
Message ID <24950593c64cff8a6761d6b3b3fdccae@localhost.localdomain>
Download mbox | patch
Permalink /patch/39801/
State Not Applicable
Headers show

Comments

phabricator - April 22, 2019, 6:24 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc0e30c9ee5ba: phabricator: set local:commits time metadata as an int, not a string (authored by Kwan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6296?vs=14884&id=14897

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

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -397,7 +397,7 @@ 
             ctx.hex(): {
                 b'author': stringutil.person(ctx.user()),
                 b'authorEmail': stringutil.email(ctx.user()),
-                b'time': b'%d' % ctx.date()[0],
+                b'time': int(ctx.date()[0]),
             },
         }),
     }