mercurial/exchange.py
changeset 21156 2bfb0598206a
parent 21155 148e98e74e25
child 21157 60ad2ea5b106
equal deleted inserted replaced
21155:148e98e74e25 21156:2bfb0598206a
   731             cl = repo.unfiltered().changelog
   731             cl = repo.unfiltered().changelog
   732             p = cl.writepending() and repo.root or ""
   732             p = cl.writepending() and repo.root or ""
   733             repo.hook('b2x-pretransactionclose', throw=True, source=source,
   733             repo.hook('b2x-pretransactionclose', throw=True, source=source,
   734                       url=url, pending=p, **tr.hookargs)
   734                       url=url, pending=p, **tr.hookargs)
   735             tr.close()
   735             tr.close()
       
   736             repo.hook('b2x-transactionclose', source=source, url=url,
       
   737                       **tr.hookargs)
   736         else:
   738         else:
   737             r = changegroup.addchangegroup(repo, cg, source, url)
   739             r = changegroup.addchangegroup(repo, cg, source, url)
   738     finally:
   740     finally:
   739         if tr is not None:
   741         if tr is not None:
   740             tr.release()
   742             tr.release()