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

Re: Separate commit message for each directory

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-02-10 11:54:55 CET

On Feb 10, 2006, at 01:39, Michael Repplinger wrote:

> by default the command 'svn commit' commits all changes in a certain
> directory and all subdirecotries. The corresponding commit message is
> applied to all files in the current directory and all subdirectories.

Well, it's not that the commit message applies to any files or
directories at all; rather, the message applies to the revision. And
if a file or directory was modified in that revision, then asking for
the log of the file shows you that commit message, yes.

> Is it possible to configure svn in that way that log messages are only
> applied to a single directory and that the user must enter a new
> log for
> each subdirectory?

No, there's just a single commit message per revision. You can,
however, institute a policy amongst your developers that they must
mention each file and directory in their commit message and say what
they did to them, but Subversion itself isn't built to enforce such a
policy. If you define a way that such a commit message has to look,
then you could conceivably program a pre-commit hook which rejects
commits whose log messages do not conform to the policy) but that may
annoy.

The Subversion team does generally mention each file in the commit
message, though I'm not sure how rigidly it's enforced, if at all.
For example here:

http://svn.collab.net/viewcvs/svn?rev=16720&view=rev

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 10 11:57:07 2006

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.