Patchwork D3591: py3: use '%d' for integers in hgext/infinitepush/__init__.py

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:38 p.m.
Message ID <aff55db03d611dedb3a254e51eef1d19@localhost.localdomain>
Download mbox | patch
Permalink /patch/31713/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:38 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa40041caf8af: py3: use &#039;%d&#039; for integers in hgext/infinitepush/__init__.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3591?vs=8762&id=8796

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

AFFECTED FILES
  hgext/infinitepush/__init__.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py
+++ b/hgext/infinitepush/__init__.py
@@ -565,19 +565,19 @@ 
         if isinstance(localkey, str) and _scratchbranchmatcher(localkey):
             scratchnode = repo.bundlestore.index.getnode(localkey)
             if scratchnode:
-                return "%s %s\n" % (1, scratchnode)
+                return "%d %s\n" % (1, scratchnode)
             else:
-                return "%s %s\n" % (0, 'scratch branch %s not found' % localkey)
+                return "%d %s\n" % (0, 'scratch branch %s not found' % localkey)
         else:
             try:
                 r = hex(repo.lookup(localkey))
-                return "%s %s\n" % (1, r)
+                return "%d %s\n" % (1, r)
             except Exception as inst:
                 if repo.bundlestore.index.getbundle(localkey):
-                    return "%s %s\n" % (1, localkey)
+                    return "%d %s\n" % (1, localkey)
                 else:
                     r = str(inst)
-                    return "%s %s\n" % (0, r)
+                    return "%d %s\n" % (0, r)
     return _lookup
 
 def _pull(orig, ui, repo, source="default", **opts):