Mercurial > hg
comparison mercurial/discovery.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 | 70383c6961b4 |
children | 6ddc86eedc3b |
comparison
equal
deleted
inserted
replaced
24282:db8679812f84 | 24283:ef22cfff7052 |
---|