Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 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 | 0c2ded041d10 |
children | 525fbf24b51b |
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'))