strip: respect the backup option in stripcallback
authorJun Wu <quark@fb.com>
Mon, 26 Jun 2017 21:11:02 -0700
changeset 33108 208de1534ebd
parent 33107 e88fdec9cb9e
child 33109 247bae545061
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!
mercurial/repair.py
--- 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