diff mercurial/changegroup.py @ 19199:d6d0f1ed8ebb

bundle-ng: move bundler creation up in the stack Create a simple start() method to pass the lookup function until bundler becomes smarter and gets a repo object. Since we now create the bundler for the whole lifetime, we need to pass it down to revlog methods.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 10 May 2013 20:37:41 +0200
parents 9dba55369cd8
children 4cfdec944edf
line wrap: on
line diff
--- a/mercurial/changegroup.py	Tue May 14 18:52:52 2013 -0500
+++ b/mercurial/changegroup.py	Fri May 10 20:37:41 2013 +0200
@@ -225,7 +225,9 @@
 
 class bundle10(object):
     deltaheader = _BUNDLE10_DELTA_HEADER
-    def __init__(self, lookup):
+    def __init__(self):
+        pass
+    def start(self, lookup):
         self._lookup = lookup
     def close(self):
         return closechunk()