Show More
@@ -237,8 +237,8 class cg1unpacker(object): | |||||
237 | repo.ui.progress(_('manifests'), None) |
|
237 | repo.ui.progress(_('manifests'), None) | |
238 | self.callback = None |
|
238 | self.callback = None | |
239 |
|
239 | |||
240 |
def apply(self, repo, tr, srctype, url, |
|
240 | def apply(self, repo, tr, srctype, url, targetphase=phases.draft, | |
241 |
|
|
241 | expectedtotal=None): | |
242 | """Add the changegroup returned by source.read() to this repo. |
|
242 | """Add the changegroup returned by source.read() to this repo. | |
243 | srctype is a string like 'push', 'pull', or 'unbundle'. url is |
|
243 | srctype is a string like 'push', 'pull', or 'unbundle'. url is | |
244 | the URL of the repo where this changegroup is coming from. |
|
244 | the URL of the repo where this changegroup is coming from. | |
@@ -297,7 +297,7 class cg1unpacker(object): | |||||
297 | cgnodes = cl.addgroup(self, csmap, trp, addrevisioncb=onchangelog) |
|
297 | cgnodes = cl.addgroup(self, csmap, trp, addrevisioncb=onchangelog) | |
298 | efiles = len(efiles) |
|
298 | efiles = len(efiles) | |
299 |
|
299 | |||
300 |
if not |
|
300 | if not cgnodes: | |
301 | raise error.Abort(_("received changelog group is empty")) |
|
301 | raise error.Abort(_("received changelog group is empty")) | |
302 | clend = len(cl) |
|
302 | clend = len(cl) | |
303 | changesets = clend - clstart |
|
303 | changesets = clend - clstart |
General Comments 0
You need to be logged in to leave comments.
Login now