Submitter | Sune Foldager |
---|---|
Date | Oct. 17, 2014, 1:14 p.m. |
Message ID | <c04ea54402e8c39cbf74.1413551699@Cuivienen.local> |
Download | mbox | patch |
Permalink | /patch/6367/ |
State | Superseded |
Headers | show |
Comments
On 10/17/2014 06:14 AM, Sune Foldager wrote: > # HG changeset patch > # User Sune Foldager <cryo@cyanite.org> > # Date 1413550750 -7200 > # Fri Oct 17 14:59:10 2014 +0200 > # Node ID c04ea54402e8c39cbf748bb136f923f25a107523 > # Parent 7b3ef1e1d1d40c5838f2df7afaf6d4029855c1ed > bundle2: send changegroup version 2 bundles by default > > diff -r 7b3ef1e1d1d4 -r c04ea54402e8 mercurial/exchange.py > --- a/mercurial/exchange.py Fri Oct 17 14:41:21 2014 +0200 > +++ b/mercurial/exchange.py Fri Oct 17 14:59:10 2014 +0200 > @@ -1172,7 +1172,7 @@ > cg = None > if kwargs.get('cg', True): > # build changegroup bundle here. > - version = '1' > + version = '2' > cg = changegroup.getchangegroupraw(repo, source, heads=heads, > common=common, bundlecaps=bundlecaps, > version=version) I changed that look at all supported packer on both side and take the max of the common value. I also implemented the same logic for push. I'll send a V2 of this series with these various improvement shortly.
Patch
diff -r 7b3ef1e1d1d4 -r c04ea54402e8 mercurial/exchange.py --- a/mercurial/exchange.py Fri Oct 17 14:41:21 2014 +0200 +++ b/mercurial/exchange.py Fri Oct 17 14:59:10 2014 +0200 @@ -1172,7 +1172,7 @@ cg = None if kwargs.get('cg', True): # build changegroup bundle here. - version = '1' + version = '2' cg = changegroup.getchangegroupraw(repo, source, heads=heads, common=common, bundlecaps=bundlecaps, version=version)