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

Re: Server side controlling properties

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Wed, 12 Mar 2008 04:14:01 -0500

On Mar 12, 2008, at 02:54, wimpunk wrote:

> I'm wondering if there's a way to set properties on a file when
> importing it into a repository. As far as I know and found in the
> documentation I can control if it's set using the hook scripts but
> can't I force it to be set server side. Is this correct?

That's basically correct. You can't [1] set file properties in a hook
script. You can only check in the pre-commit script that all your
required properties are set, and if they aren't, you can reject the
transaction. Users can set up auto-props to make setting properties
before committing easier.

[1] Well, you could immediately do a second commit to set the
required properties. But that's a mess, because you have to maintain
a working copy on the server, and you have to make sure you don't act
on the revisions that your script is committing, and it means that
users' working copies could immediately be out of sync with the
repository and users should run "svn update" shortly after doing each
"svn commit" to receive those property changes... Better not to do
this and instead educate users on doing it right themselves.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-12 10:14:38 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.