mercurial/localrepo.py
branchstable
changeset 24825 7f9655f37163
parent 24824 0325c0da05df
child 24843 21b33f0460e0
equal deleted inserted replaced
24824:0325c0da05df 24825:7f9655f37163
  1903         try:
  1903         try:
  1904             tr = self.currenttransaction()
  1904             tr = self.currenttransaction()
  1905             hookargs = {}
  1905             hookargs = {}
  1906             if tr is not None:
  1906             if tr is not None:
  1907                 hookargs.update(tr.hookargs)
  1907                 hookargs.update(tr.hookargs)
       
  1908                 pending = lambda: tr.writepending() and self.root or ""
       
  1909                 hookargs['pending'] = pending
  1908             hookargs['namespace'] = namespace
  1910             hookargs['namespace'] = namespace
  1909             hookargs['key'] = key
  1911             hookargs['key'] = key
  1910             hookargs['old'] = old
  1912             hookargs['old'] = old
  1911             hookargs['new'] = new
  1913             hookargs['new'] = new
  1912             self.hook('prepushkey', throw=True, **hookargs)
  1914             self.hook('prepushkey', throw=True, **hookargs)