Mercurial > public > mercurial-scm > hg
diff contrib/shrink-revlog.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 | c2d9ef43ff6c |
children | 4cfdec944edf |
line wrap: on
line diff
--- a/contrib/shrink-revlog.py Tue May 14 18:52:52 2013 -0500 +++ b/contrib/shrink-revlog.py Fri May 10 20:37:41 2013 +0200 @@ -117,7 +117,8 @@ unlookup = lambda x: int(x, 10) try: - bundler = changegroup.bundle10(lookup) + bundler = changegroup.bundle10() + bundler.start(lookup) group = util.chunkbuffer(r1.group(order, bundler)) group = changegroup.unbundle10(group, "UN") r2.addgroup(group, unlookup, tr)