comparison mercurial/formatter.py @ 24283:ef22cfff7052

transaction: add a validation stage The 'transaction' object can now be fed a 'validator' function. This function will be run right before the transaction is closed to validate its content. The target usage is hooks. The validation function is expected to raise an exception when it wants to abort the transaction. This only introduce the idea with a default no-op validator. Actual usage is in the next changeset.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 09 Mar 2015 22:43:36 -0700
parents cb28d2b3db0b
children 0a714a1f7d5c
comparison
equal deleted inserted replaced
24282:db8679812f84 24283:ef22cfff7052