Mercurial > hg-stable
changeset 25404:ff955e7b1085
bundle2: use bundle2 by default
All the test change have been isolated and validated. We have free to turn on
bundle2 as the default exchange protocol.
"To reach a port we must set sail –
Sail, not tie at anchor
Sail, not drift."
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 06 Feb 2015 17:41:24 +0000 |
parents | 30ab130af221 |
children | 220a220ed088 |
files | mercurial/exchange.py mercurial/repair.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/exchange.py Mon Jun 01 10:28:40 2015 -0700 +++ b/mercurial/exchange.py Fri Feb 06 17:41:24 2015 +0000 @@ -59,7 +59,7 @@ """return true if a pull/push can use bundle2 Feel free to nuke this function when we drop the experimental option""" - return (op.repo.ui.configbool('experimental', 'bundle2-exp', False) + return (op.repo.ui.configbool('experimental', 'bundle2-exp', True) and op.remote.capable('bundle2'))
--- a/mercurial/repair.py Mon Jun 01 10:28:40 2015 -0700 +++ b/mercurial/repair.py Fri Feb 06 17:41:24 2015 +0000 @@ -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') and + usebundle2 = (repo.ui.config('experimental', 'bundle2-exp', True) and repo.ui.config('experimental', 'strip-bundle2-version')) if usebundle2: cgversion = repo.ui.config('experimental', 'strip-bundle2-version')