[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Pre-commit hook set to fail if build fails

From: si <sshnug.si_at_gmail.com>
Date: 2005-11-11 15:06:18 CET

> What would be ideal is if you could checkout a transaction, but that doesn't seem to be possible.

What about an svn checkout of HEAD into a new working copy
(or an svn update of existing working copy to keep things fast),
pipe svnlook diff for the transaction into a patch program against
working copy, trigger your build, report success/failure of build
through pre-commit hook.

Doing it in post-commit and then reverting on failure seems fraught
with danger...what happens if 2 developers commit 5 seconds apart,
with the first failing but the second succeeding?


p.s. Josh may have meant svnlook diff --transaction

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 11 15:16:44 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.