comparison mercurial/localrepo.py @ 25218:00d905a12bb6 stable

localrepo: rename hook argument from TXNID to txnid (BC) From the first (3.4 or d283517b260b), `TXNID` is passed to Python hooks without lowering its name, but it is wrong.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 20 May 2015 04:34:27 +0900
parents 21b33f0460e0
children 2664f536a97e
comparison
equal deleted inserted replaced
25194:ef4538ba67ef 25218:00d905a12bb6
983 aftertrans(renames), 983 aftertrans(renames),
984 self.store.createmode, 984 self.store.createmode,
985 validator=validate) 985 validator=validate)
986 986
987 trid = 'TXN:' + util.sha1("%s#%f" % (id(tr), time.time())).hexdigest() 987 trid = 'TXN:' + util.sha1("%s#%f" % (id(tr), time.time())).hexdigest()
988 tr.hookargs['TXNID'] = trid 988 tr.hookargs['txnid'] = trid
989 # note: writing the fncache only during finalize mean that the file is 989 # note: writing the fncache only during finalize mean that the file is
990 # outdated when running hooks. As fncache is used for streaming clone, 990 # outdated when running hooks. As fncache is used for streaming clone,
991 # this is not expected to break anything that happen during the hooks. 991 # this is not expected to break anything that happen during the hooks.
992 tr.addfinalize('flush-fncache', self.store.write) 992 tr.addfinalize('flush-fncache', self.store.write)
993 def txnclosehook(tr2): 993 def txnclosehook(tr2):