Mercurial > hg
diff contrib/undumprevlog @ 20881:3c47677a8d04
transaction: add onclose/onabort hook for pre-close logic
Adds an optional onclose parameter to transactions that gets called just before
the transaction is committed. This allows things that build up data over the
course of the transaction (like the fncache) to commit their data.
Also adds onabort. It's not used, but will allow extensions to hook into onclose
and onabort to provide transaction support.
author | Durham Goode <durham@fb.com> |
---|---|
date | Mon, 24 Mar 2014 15:57:47 -0700 |
parents | cba222f01056 |
children | 5bd1f6572db0 |