diff mercurial/repair.py @ 25845:7e3bb3e1bfa7

bundle2: fix type of experimental option
author Matt Mackall <mpm@selenic.com>
date Thu, 25 Jun 2015 17:56:06 -0500
parents 328739ea70c3
children 3e84f40232c7
line wrap: on
line diff
--- a/mercurial/repair.py	Thu Jun 25 17:54:55 2015 -0500
+++ b/mercurial/repair.py	Thu Jun 25 17:56:06 2015 -0500
@@ -13,7 +13,7 @@
 
 def _bundle(repo, bases, heads, node, suffix, compress=True):
     """create a bundle with the specified revisions as a backup"""
-    usebundle2 = (repo.ui.config('experimental', 'bundle2-exp', True) and
+    usebundle2 = (repo.ui.configbool('experimental', 'bundle2-exp', True) and
                   repo.ui.config('experimental', 'strip-bundle2-version'))
     if usebundle2:
         cgversion = repo.ui.config('experimental', 'strip-bundle2-version')