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