writebundle: use 'None' instead of 'UN' for the bundle2 case
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 15 Sep 2015 17:43:54 -0700
changeset 26268 a91d7dfd1952
parent 26267 eca468b8fae4
child 26269 521b4d061d4a
writebundle: use 'None' instead of 'UN' for the bundle2 case Let's be modern!
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Tue Sep 15 17:53:28 2015 -0700
+++ b/mercurial/changegroup.py	Tue Sep 15 17:43:54 2015 -0700
@@ -119,7 +119,7 @@
             bundle = bundle2.bundle20(ui)
             part = bundle.newpart('changegroup', data=cg.getchunks())
             part.addparam('version', cg.version)
-            z = util.compressors['UN']()
+            z = util.compressors[None]()
             chunkiter = bundle.getchunks()
         else:
             if cg.version != '01':