# HG changeset patch # User Pierre-Yves David # Date 1442016346 25200 # Node ID 521b4d061d4adfe0a054785881f7fb907fb67a98 # Parent a91d7dfd195279b8cc8b282ddc6135972e154967 bundle: use None when unpacking uncompressed changegroup Let's be more modern! diff -r a91d7dfd1952 -r 521b4d061d4a mercurial/bundle2.py --- a/mercurial/bundle2.py Tue Sep 15 17:43:54 2015 -0700 +++ b/mercurial/bundle2.py Fri Sep 11 17:05:46 2015 -0700 @@ -1174,7 +1174,7 @@ unpackerversion = inpart.params.get('version', '01') # We should raise an appropriate exception here unpacker = changegroup.packermap[unpackerversion][1] - cg = unpacker(inpart, 'UN') + cg = unpacker(inpart, None) # the source and url passed here are overwritten by the one contained in # the transaction.hookargs argument. So 'bundle2' is a placeholder nbchangesets = None