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

Re: keywords repository wide rather than client

From: Andy Levy <andy.levy_at_gmail.com>
Date: Mon, 14 Jan 2008 09:04:57 -0500

On Jan 14, 2008 8:07 AM, awoodjetts <adam.woodjetts_at_rentokil-initial.com> wrote:
>
>
>
>
> I have spent the morning bashing my head off a wall trying to remember what
> I did months ago to get keywords property added automatically to all word
> documents in my repository. Just as I was about to email for assistance I
> discovered something interesting..
>
>
>
> I followed the instructions and edited the config file (tsvn settings>edit)
> on the machine on which the repository is stored to read the following:
>
>
>
> Enable-auto-props = yes
>
> *.* = svn:keywords=Id HeadURL (have also tried .xls but that didn't help!)
>
>
>
> I submitted a couple files using the same template which I had previously
> manually changed. Yet none of them contained the keyword properties and
> therefore the substitution didn't happen.
>
>
>
> Then, as I was looking to copy and paste my file into my email I discovered
> that if I search for the config file from my client (Repo is on a PC my
> laptop is a client) the config file is different! Within the client config
> file I discovered the changes I had made months ago to allow keywords to
> work on word docs. A quick addition for xls, and they work now as well!
>
>
>
> So my question/problem is: Why do I have to make these settings from the
> client side? It would be VERY beneficial for me to make them from a single
> point ie: the repository rather than trying to get a load of currently
> sceptical users to do it themselves!

Because the server can't always know what the right thing to do is,
and shouldn't second-guess what the user wants. Subversion does not
have any server-side facility for forcing a configuration upon the
user. The closest you can get is to install a pre-commit hook script
which enforces these rules, and rejects any commit which violates
them.

Keywords especially can corrupt binary files.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-01-14 15:05:04 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.