From patchwork Thu Jan 18 16:12:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D1884: strip: use %d for known-int string interpolation From: phabricator X-Patchwork-Id: 26910 Message-Id: <5d7ad2038ef3679fc6c5840773763165@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Thu, 18 Jan 2018 16:12:36 +0000 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 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