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

Re: working copy hook

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 25 Feb 2019 10:22:26 +0100

On Mon, Feb 25, 2019 at 05:11:25PM +0800, wuzhouhui wrote:
> Could Subversion support working copy hook? Because I want to ensure
> new commit won't introduce any building error, e.g. always running
> "make html" before "svn commit".
>
> Thanks.

There are only server-side hooks.

But you can use branches to solve this problem.
You could commit to a "staging" branch, and have a post-commit hook on the
server which runs a build test on commits to this branch, and then performs
an automatic merge to a "production" branch if the build was successful.
If the build fails, such a server-side hook could avoid merging changes to
the "production" branch until the "staging" branch has been fixed in a
future commit.
Received on 2019-02-25 10:22:51 CET

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.