changeset 35864:011ca2d795d6

strip: use in-place revset formatspec instead of %-formatting ourselves Caught by Yuya during review of D1884. Differential Revision: https://phab.mercurial-scm.org/D1905
author Augie Fackler <augie@google.com>
date Thu, 18 Jan 2018 10:22:41 -0500
parents 4be991331a46
children c3ebe69f6391
files hgext/strip.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/strip.py	Wed Jan 17 19:11:51 2018 -0500
+++ b/hgext/strip.py	Thu Jan 18 10:22:41 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("%s::.", uctx.rev())
             changedfiles = []
             for rev in descendantrevs:
                 # blindly reset the files, regardless of what actually changed