##// END OF EJS Templates
addchangegroup: call `prechangegroup` hook after transaction retrieval...
Pierre-Yves David -
r22969:805c18b2 default
parent child Browse files
Show More
@@ -592,8 +592,6 b' def addchangegroup(repo, source, srctype'
592 592 if not source:
593 593 return 0
594 594
595 repo.hook('prechangegroup', throw=True, source=srctype, url=url)
596
597 595 changesets = files = revisions = 0
598 596 efiles = set()
599 597
@@ -605,6 +603,8 b' def addchangegroup(repo, source, srctype'
605 603
606 604 tr = repo.transaction("\n".join([srctype, util.hidepassword(url)]))
607 605 try:
606 repo.hook('prechangegroup', throw=True, source=srctype, url=url)
607
608 608 trp = weakref.proxy(tr)
609 609 # pull off the changeset group
610 610 repo.ui.status(_("adding changesets\n"))
General Comments 0
You need to be logged in to leave comments. Login now