[PATCH 1 of 3 V2] bundle2: fix configuration name mismatch

Durham Goode durham at fb.com
Thu May 8 12:23:52 CDT 2014


# HG changeset patch
# User Durham Goode <durham at fb.com>
# Date 1399508438 25200
#      Wed May 07 17:20:38 2014 -0700
# Node ID c727b16938123025ab733c7c996bec556e45860a
# Parent  62a2749895e4151f766a4243fa870b1ddd7386d0
bundle2: fix configuration name mismatch

During pulls bundle2 was checking server.bundle2, but during pushes it was
checking experimental.bundle2. This makes them both experimental.bundle2.

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -537,7 +537,7 @@
     lock = pullop.repo.lock()
     try:
         _pulldiscovery(pullop)
-        if (pullop.repo.ui.configbool('server', 'bundle2', False)
+        if (pullop.repo.ui.configbool('experimental', 'bundle2-exp', False)
             and pullop.remote.capable('bundle2-exp')):
             _pullbundle2(pullop)
         if 'changegroup' in pullop.todosteps:


More information about the Mercurial-devel mailing list