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

login
register
mail settings
Submitter phabricator
Date Jan. 18, 2018, 4:12 p.m.
Message ID <5d7ad2038ef3679fc6c5840773763165@localhost.localdomain>
Download mbox | patch
Permalink /patch/26910/
State Not Applicable
Headers show

Comments

phabricator - Jan. 18, 2018, 4:12 p.m.
durin42 updated this revision to Diff 4906.

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  hgext/strip.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
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