bundle2: fix type of experimental option
authorMatt Mackall <mpm@selenic.com>
Thu, 25 Jun 2015 17:56:06 -0500
changeset 25845 7e3bb3e1bfa7
parent 25844 18541e9510c5
child 25846 c55eac3f388d
bundle2: fix type of experimental option
mercurial/repair.py
--- 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')