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

Re: content access in commit hooks?

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Mon, 7 Apr 2008 13:44:09 -0500

On Apr 7, 2008, at 12:05, aldana wrote:

> as far as i know it is not possible to get to the contents of
> committed files
> being able to change them. this way you could enforce code
> conventions in
> terms of code-formatting and members-order.
>
> why does subversion not support this, maybe this could be a feature
> for next
> releases?

You can examine the contents of files being committed (using svnlook)
but you cannot change it. The function of a revision control system
is to store the files that the developers commit, not to change them
after having been committed. Make your developers do the correct code
formatting or whatever before they commit. You can write a pre-commit
hook to enforce this rule, if that's required for your organization.
Developers will surely soon learn.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-07 20:45:24 CEST

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.