Thanks Andy, both for confirming why it can't be done, therefore saving me
time in trying, and in pointing me in a direction to investigate if I want
to make the system more "reliable".
Adam.
-----Original Message-----
From: Andy Levy [mailto:andy.levy_at_gmail.com]
Sent: 14 January 2008 14:05
To: users_at_tortoisesvn.tigris.org
Subject: Re: keywords repository wide rather than client
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
---------------------------------------------------------------------
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 16:33:08 CET