Mercurial > public > mercurial-scm > hg
comparison mercurial/bundle2.py @ 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 | 4bc3707f3e67 |
children | cff70549a959 |
comparison
equal
deleted
inserted
replaced
26268:a91d7dfd1952 | 26269:521b4d061d4a |
---|---|
1172 # for the whole processing scope. | 1172 # for the whole processing scope. |
1173 op.gettransaction() | 1173 op.gettransaction() |
1174 unpackerversion = inpart.params.get('version', '01') | 1174 unpackerversion = inpart.params.get('version', '01') |
1175 # We should raise an appropriate exception here | 1175 # We should raise an appropriate exception here |
1176 unpacker = changegroup.packermap[unpackerversion][1] | 1176 unpacker = changegroup.packermap[unpackerversion][1] |
1177 cg = unpacker(inpart, 'UN') | 1177 cg = unpacker(inpart, None) |
1178 # the source and url passed here are overwritten by the one contained in | 1178 # the source and url passed here are overwritten by the one contained in |
1179 # the transaction.hookargs argument. So 'bundle2' is a placeholder | 1179 # the transaction.hookargs argument. So 'bundle2' is a placeholder |
1180 nbchangesets = None | 1180 nbchangesets = None |
1181 if 'nbchanges' in inpart.params: | 1181 if 'nbchanges' in inpart.params: |
1182 nbchangesets = int(inpart.params.get('nbchanges')) | 1182 nbchangesets = int(inpart.params.get('nbchanges')) |