diff mercurial/exchange.py @ 21005:3d38ebb586fe

bundle2: rename part to bundlepart We are going to introduce an `unbundlepart` dedicated to reading bundle. So we need to rename the one used to create bundle. Even if dedicated to creation, this is still used for unbundling until we get the new class.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 11 Apr 2014 07:36:14 -0700
parents 0f7e01e0c06f
children c827a0028e6f
line wrap: on
line diff
--- a/mercurial/exchange.py	Fri Apr 11 16:43:01 2014 -0400
+++ b/mercurial/exchange.py	Fri Apr 11 07:36:14 2014 -0700
@@ -604,7 +604,7 @@
         yield 'HG10UN'
         for c in cg.getchunks():
             yield c
-    part = bundle2.part('changegroup', data=cgchunks())
+    part = bundle2.bundlepart('changegroup', data=cgchunks())
     bundler.addpart(part)
     return bundle2.unbundle20(repo.ui, util.chunkbuffer(bundler.getchunks()))