Brian Mitchell
Brian Mitchell

Reputation: 151

SVN Pre-Commit for build systems

What is the best script for a SVN Pre commit to only allows commits that contain the following string

issue 1234

This is to help our build system tag the ticket in our bug system while talking to the svn repo

Something like


if comment includes

issue 1234

then commit

otherwise

fail "please enter issue "


This is for a SVN linux configuration

Upvotes: 2

Views: 521

Answers (1)

Josh
Josh

Reputation: 401

There is a great pre-commit log entry query example shown at http://blog.grimsy.net/2008/07/a-few-svn-pre-commit-hooks/

Upvotes: 2

Related Questions