changeset 33120:208de1534ebd

strip: respect the backup option in stripcallback The backup option was mistakenly ignored. It should be respected. Thanks Martin von Zweigbergk for finding this out!
author Jun Wu <quark@fb.com>
date Mon, 26 Jun 2017 21:11:02 -0700
parents e88fdec9cb9e
children 247bae545061
files mercurial/repair.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/repair.py	Mon Jun 26 23:58:27 2017 +0530
+++ b/mercurial/repair.py	Mon Jun 26 21:11:02 2017 -0700
@@ -285,7 +285,7 @@
     def __call__(self, tr):
         roots = safestriproots(self.ui, self.repo, self.nodelist)
         if roots:
-            strip(self.ui, self.repo, roots, True, self.topic)
+            strip(self.ui, self.repo, roots, self.backup, self.topic)
 
 def delayedstrip(ui, repo, nodelist, topic=None):
     """like strip, but works inside transaction and won't strip irreverent revs