mercurial/localrepo.py
changeset 15586 98ec09582f72
parent 15585 a348739da8f0
child 15587 809d5d30e377
equal deleted inserted replaced
15585:a348739da8f0 15586:98ec09582f72
  1998             # make changelog see real files again
  1998             # make changelog see real files again
  1999             cl.finalize(trp)
  1999             cl.finalize(trp)
  2000 
  2000 
  2001             tr.close()
  2001             tr.close()
  2002 
  2002 
  2003             def postaddchangegroup():
  2003             if changesets > 0:
  2004                 if changesets > 0:
  2004                 def runhooks():
  2005                     # forcefully update the on-disk branch cache
  2005                     # forcefully update the on-disk branch cache
  2006                     self.ui.debug("updating the branch cache\n")
  2006                     self.ui.debug("updating the branch cache\n")
  2007                     self.updatebranchcache()
  2007                     self.updatebranchcache()
  2008                     self.hook("changegroup", node=hex(cl.node(clstart)),
  2008                     self.hook("changegroup", node=hex(cl.node(clstart)),
  2009                               source=srctype, url=url)
  2009                               source=srctype, url=url)
  2010 
  2010 
  2011                     for n in added:
  2011                     for n in added:
  2012                         self.hook("incoming", node=hex(n), source=srctype,
  2012                         self.hook("incoming", node=hex(n), source=srctype,
  2013                                   url=url)
  2013                                   url=url)
  2014             self._postrelease(postaddchangegroup)
  2014                 self._postrelease(runhooks)
  2015 
  2015 
  2016         finally:
  2016         finally:
  2017             tr.release()
  2017             tr.release()
  2018         # never return 0 here:
  2018         # never return 0 here:
  2019         if dh < 0:
  2019         if dh < 0: