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!
--- 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