--- a/mercurial/localrepo.py Sun May 01 17:35:05 2011 +0200
+++ b/mercurial/localrepo.py Sun May 01 19:44:28 2011 +0200
@@ -1711,6 +1711,7 @@
pr = prog()
source.callback = pr
+ source.changelogheader()
if (cl.addgroup(source, csmap, trp) is None
and not emptyok):
raise util.Abort(_("received changelog group is empty"))
@@ -1730,6 +1731,7 @@
# if the result of the merge of 1 and 2 is the same in 3 and 4,
# no new manifest will be created and the manifest group will
# be empty during the pull
+ source.manifestheader()
self.manifest.addgroup(source, revmap, trp)
self.ui.progress(_('manifests'), None)
@@ -1751,9 +1753,10 @@
source.callback = None
while 1:
- f = source.chunk()
- if not f:
+ chunkdata = source.filelogheader()
+ if not chunkdata:
break
+ f = chunkdata["filename"]
self.ui.debug("adding %s revisions\n" % f)
pr()
fl = self.file(f)