Comments
Patch
@@ -590,12 +590,10 @@ def addchangegroup(repo, source, srctype
return cl.rev(x)
if not source:
return 0
- repo.hook('prechangegroup', throw=True, source=srctype, url=url)
-
changesets = files = revisions = 0
efiles = set()
# write changelog data to temp files so concurrent readers will not see
# inconsistent view
@@ -603,10 +601,12 @@ def addchangegroup(repo, source, srctype
cl.delayupdate()
oldheads = cl.heads()
tr = repo.transaction("\n".join([srctype, util.hidepassword(url)]))
try:
+ repo.hook('prechangegroup', throw=True, source=srctype, url=url)
+
trp = weakref.proxy(tr)
# pull off the changeset group
repo.ui.status(_("adding changesets\n"))
clstart = len(cl)
class prog(object):