Jim Rush
Jim Rush

Reputation: 4163

Is there a way to force log entries on svn check in?

There is a desire in one of my teams to force user's to provide a log entry on check-in.

I think the only available approach is to create a custom repository hook to reject a check-in. Is this correct ? Any existing examples or commentary on the approach ?

Upvotes: 2

Views: 371

Answers (3)

splash
splash

Reputation: 13327

From the TortoiseSVN docs:

TortoiseSVN uses properties to control some of its features. One of those properties is the tsvn:logminsize property.

If you set that property on a folder, then TortoiseSVN will disable the OK button in all commit dialogs until the user has entered a log message with at least the length specified in the property.

Upvotes: 3

ryanprayogo
ryanprayogo

Reputation: 11817

pre-commit hook is the only way that I find to reject empty commit logs.

See this:

http://code.google.com/p/subversion-pre-commit-hook/

Upvotes: 6

Max
Max

Reputation: 3180

I think the commit script hook is the way to go, but that will not prevent users to write "asdfasdf" in the comment field just to check-in stuff.

but that's another subject.

Max.

Upvotes: 1

Related Questions