--- 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