##// 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 if not source:
592 if not source:
593 return 0
593 return 0
594
594
595 repo.hook('prechangegroup', throw=True, source=srctype, url=url)
596
597 changesets = files = revisions = 0
595 changesets = files = revisions = 0
598 efiles = set()
596 efiles = set()
599
597
@@ -605,6 +603,8 b' def addchangegroup(repo, source, srctype'
605
603
606 tr = repo.transaction("\n".join([srctype, util.hidepassword(url)]))
604 tr = repo.transaction("\n".join([srctype, util.hidepassword(url)]))
607 try:
605 try:
606 repo.hook('prechangegroup', throw=True, source=srctype, url=url)
607
608 trp = weakref.proxy(tr)
608 trp = weakref.proxy(tr)
609 # pull off the changeset group
609 # pull off the changeset group
610 repo.ui.status(_("adding changesets\n"))
610 repo.ui.status(_("adding changesets\n"))
General Comments 0
You need to be logged in to leave comments. Login now