Patchwork D1884: strip: use %d for known-int string interpolation

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 8:32 p.m.
Message ID <b64a9ded43098c14fda2955287f71147@localhost.localdomain>
Download mbox | patch
Permalink /patch/27122/
State Not Applicable
Headers show

Comments

phabricator - Feb. 1, 2018, 8:32 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG81a00cd2a6e5: strip: use %d for known-int string interpolation (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1884?vs=4906&id=5054

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

AFFECTED FILES
  hgext/strip.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/strip.py b/hgext/strip.py
--- a/hgext/strip.py
+++ b/hgext/strip.py
@@ -215,7 +215,7 @@ 
 
             # only reset the dirstate for files that would actually change
             # between the working context and uctx
-            descendantrevs = repo.revs("%s::.", uctx.rev())
+            descendantrevs = repo.revs(b"%d::.", uctx.rev())
             changedfiles = []
             for rev in descendantrevs:
                 # blindly reset the files, regardless of what actually changed