Patchwork [1,of,4,STABLE] bundle2: fix configuration name mismatch

login
register
mail settings
Submitter Pierre-Yves David
Date May 15, 2014, 5:50 a.m.
Message ID <4a4efce2dc1350fc85c4.1400133013@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/4748/
State Accepted
Commit 341039aa11543c404dcf525241aa04f0611483c8
Headers show

Comments

Pierre-Yves David - May 15, 2014, 5:50 a.m.
# HG changeset patch
# User Durham Goode <durham@fb.com>
# Date 1399508438 25200
#      Wed May 07 17:20:38 2014 -0700
# Branch stable
# Node ID 4a4efce2dc1350fc85c4e4807c0b92e94b8e82f0
# Parent  54d7657d7d1e6a62315eea53f4498657e766bb60
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.

This is a backport of 750c7c14a637

Patch

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -535,11 +535,11 @@  def pull(repo, remote, heads=None, force
             raise util.Abort(msg)
 
     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:
             _pullchangeset(pullop)
         if 'phases' in pullop.todosteps: