On 14/01/2008, Andy Levy <andy.levy_at_gmail.com> wrote:
> 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.
If you need keywords in binary files, use the fixed length keyword
feature of Subversion (using a double colon after the keyword).
http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
Simon
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.net
---------------------------------------------------------------------
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 17:16:10 CET