Mercurial > hg
comparison mercurial/hgweb/server.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 | dc4d2cd3aa3e |
children | 328739ea70c3 |
comparison
equal
deleted
inserted
replaced
24282:db8679812f84 | 24283:ef22cfff7052 |
---|