# HG changeset patch # User Augie Fackler # Date 2018-01-18 01:07:25 # Node ID c3ebe69f6391a8f71b8089bf6e1586ab091fb52f # Parent 011ca2d795d60ae9d4a75e0fa5be7553655c235e strip: use %d for known-int string interpolation Differential Revision: https://phab.mercurial-scm.org/D1884 diff --git a/hgext/strip.py b/hgext/strip.py --- a/hgext/strip.py +++ b/hgext/strip.py @@ -215,7 +215,7 @@ def stripcmd(ui, repo, *revs, **opts): # 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