upgraderepo: select correct deltareuse depending on actions
authorPaul Morelle <paul.morelle@octobus.net>
Wed, 10 Jan 2018 17:24:25 +0100
changeset 35598 29248ea26b29
parent 35597 ed0902e8053e
child 35599 af25237be091
upgraderepo: select correct deltareuse depending on actions Only 'redeltafulladd' was taken into account because of a small typo.
mercurial/upgrade.py
--- a/mercurial/upgrade.py	Tue Jan 02 18:35:11 2018 +0900
+++ b/mercurial/upgrade.py	Wed Jan 10 17:24:25 2018 +0100
@@ -631,7 +631,7 @@
         deltareuse = revlog.revlog.DELTAREUSESAMEREVS
     elif 'redeltamultibase' in actions:
         deltareuse = revlog.revlog.DELTAREUSESAMEREVS
-    if 'redeltafulladd' in actions:
+    elif 'redeltafulladd' in actions:
         deltareuse = revlog.revlog.DELTAREUSEFULLADD
     else:
         deltareuse = revlog.revlog.DELTAREUSEALWAYS