Don't do this on the server side. Instead:
* Create a Subversion configuration file that has the autoprops you
want set. Then, publish this, so all the developers can see it. I put
ours on the company Wiki.
* Use a pre-commit trigger to reject the transaction if the
transaction in question has a file that doesn't have this property
configured.
It will only take one or two failed commits before the developers
setup their autoconfig properties themselves -- especially since you
provided them with a good Subversion configuration file.
If you want a pre-commit trigger that can do this, you can borrow mine
at <http://dl.getdropbox.com/u/433257/hooks.zip>. It's a Perl script
and you need the Config::IniFile module.
On Fri, May 8, 2009 at 1:37 AM, Ramachandran, Vishwanath(IE10)
<Vishwanath.Ramachandran_at_honeywell.com> wrote:
> Hi There
>
> I need to know if it would be possible to make modifications on the
> subversion server side for the repository in a way that everytime a new
> item is added to the repository it will get added (automatically on
> server side) the property svn:needs-lock .
>
> I think that it is possible to locally set on the Tortoise client a
> special setting in the config file in the section "auto-props". The
> disadvantage with that is that each client has to do this on his machine
> seperately.
>
> First i need to have this information if this is possible to implement
> on the server (and if you could do this)-> Pls let me know. Also i need
> the information if there are any side effects or disadvantages of doing
> this on the server.
>
> Before really setting up the repository i have to confirm you that we
> really want to go this way
>
> I know that Keyword expansion is a client-side operation, and your
> client only "knows" about changes which have occurred in the repository
> when you update your working copy to include those changes
>
> But What i want to get is just to get for each file the properties for
> keyword expansion set ->directly on the server -> same as the property
> snv:Need-lock has been set.
>
> We want just to add the property "snv:keyword URL Rev Author Date" for
> the file types *.doc, *.xls, *.mm, *.mpp, *. ppt. directly during
> commiting (same as it is done for snv:need-lock).
>
> The description in the attached word file was just a "workaround" which
> we used today to reach that.
>
> Please share your thoughts
>
> Regards
> R.R.Vishwanath
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2106211
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>
--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2115489
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-08 17:41:57 CEST