# HG changeset patch # User Jun Wu # Date 2017-06-27 04:11:02 # Node ID 208de1534ebd7e4130cc609f222ced645e6fafa6 # Parent e88fdec9cb9ebc58e217f7e591ea15afe928c1c8 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! diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -285,7 +285,7 @@ class stripcallback(object): 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