Mercurial > hg
comparison mercurial/encoding.py @ 23281:f60ed8cf4afc
transaction: pass the transaction to 'finalize' callback
The callback will likely need to perform some operation related to the
transaction (eg: registering file update). So we better pass the current
transaction as the callback argument. Otherwise callback that needs it has to
rely on horrible weak reference trick.
This allow already allow us to slay a wild weak reference usage.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sat, 08 Nov 2014 16:31:38 +0000 |
parents | bcff9ecdaae0 |
children | 885bd7c5c7e3 |
comparison
equal
deleted
inserted
replaced
23280:b01c491af0cf | 23281:f60ed8cf4afc |
---|