strip: use %d for known-int string interpolation
authorAugie Fackler <augie@google.com>
Wed, 17 Jan 2018 20:07:25 -0500
changeset 35825 c3ebe69f6391
parent 35824 011ca2d795d6
child 35826 555bc4ab37ad
strip: use %d for known-int string interpolation Differential Revision: https://phab.mercurial-scm.org/D1884
hgext/strip.py
--- a/hgext/strip.py	Thu Jan 18 10:22:41 2018 -0500
+++ b/hgext/strip.py	Wed Jan 17 20:07:25 2018 -0500
@@ -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