##// END OF EJS Templates
changegroup: remove option to allow empty changegroup (API)...
Martin von Zweigbergk -
r33308:248d5890 default
parent child Browse files
Show More
@@ -237,8 +237,8 b' 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, emptyok=False,
240 def apply(self, repo, tr, srctype, url, targetphase=phases.draft,
241 targetphase=phases.draft, expectedtotal=None):
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 b' 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 (cgnodes or emptyok):
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