Verbatim:Development/commithooks: Difference between revisions

Corrected definition of preupdate()
m (New page: Verbatim » Development Planning » Commit Hooks We modified Pootle to support pre/post commit hooks. This lets us do things like run x2y scripts on our .po files so we can...)
 
(Corrected definition of preupdate())
 
Line 18: Line 18:
** Called after a commit.  Success is a boolean.
** Called after a commit.  Success is a boolean.
* preupdate(updatedfile)
* preupdate(updatedfile)
** '''This function must return a list of the files to be committed.'''
** '''This function must return a list of the files to be updated from the repository.'''
* postupdate(updatedfile)
* postupdate(updatedfile)