bundle: use None when unpacking uncompressed changegroup
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 11 Sep 2015 17:05:46 -0700
changeset 26269 521b4d061d4a
parent 26268 a91d7dfd1952
child 26270 a5f5a815a006
bundle: use None when unpacking uncompressed changegroup Let's be more modern!
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