You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by wimpunk <wi...@gmail.com> on 2008/03/12 07:54:15 UTC
Server side controlling properties
Hi,
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?
Kind regards,
wimpunk.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Server side controlling properties
Posted by Ryan Schmidt <su...@ryandesign.com>.
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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org