Mark Phippard <markp...@gmail.com> writes:

> On Wed, Feb 22, 2012 at 2:49 PM, Torsten Krah
> <tk...@fachschaft.imn.htwk-leipzig.de> wrote:
>
>> If commit can not fail - for which ever reason - why the doc does state that
>> the hook does only run if the commit is actual successful?
>> So it is possible to fail or not?
>
> Commits can fail.  A common reason would be that a file included in
> the commit was not at the HEAD revision in your working copy.  I
> believe these sort of checks do not happen until after the pre-commit
> hook is called.

Out-of-date checks happen twice.  They happen first at an early stage
during the commit as this allows us to reject the commit before the user
has spent a lot of time uploading content.  However these early
out-of-date checks could themselves be out-of-date by the time we come
to finalise the commit (another commit could have completed).  So the
out-of-date checks get repeated once Subversion has taken the commit
lock, and this second check is after the pre-commit hook has run.

-- 
Philip

Reply via email to