changeset 26269:521b4d061d4a

bundle: use None when unpacking uncompressed changegroup Let's be more modern!
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 11 Sep 2015 17:05:46 -0700
parents a91d7dfd1952
children a5f5a815a006
files mercurial/bundle2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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