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

Re: [TSVN] problems with the Config file -> setting EOL:style

From: SteveKing <steveking_at_gmx.ch>
Date: 2004-12-17 12:44:32 CET

Peter Vandersteegen wrote:

> Recently I've created the configuration file Config under c:\documents
> and settings\$username$\Application Data\Subversion\
> -> This is a windows 2000 pro environment with tortoiseSVN 1.1.1
> TortoiseSVN does not seem to follow the settings defined in this file
> Can anybody tell me what went wrong?

It does. You just have to follow the format of the config file.

> Under Linux the EOL-problem can be solved by adjusting an already
> existing Config file (in linux -> /home/$username$/.subversion/Config)
> In this file I made the following lines:
> [auto-props]
> enable-auto-props = yes
> *.txt = svn:eol-style=native

That's wrong. You have to write it:
enable-auto-props = yes
*.txt = svn:eol-style=native

> In this case every NEW .txt file should use the EOL markers specific to
> its own platform.
> In tortoise I went to 'right mouse click' -> tortoise -> settings ->
> main-tab -> 'subversion configuration file' edit
> In my windows 2000 environment this file did NOT yet EXISTED so I created
> c:\documents and settings\$username$\Application
> Data\Subversion\Config

The file is called "config", not "Config". Even though windows doesn't
differ between such filenames, Subversion does.

> I used the same configuration lines as defined above.
> btw: is this configuration file not normally created under windows? If
> not, it would be handy if it would.

It is. Just use TSVN to update/checkout/commit something and the file
will be created.

> Now I did the following test:
> * create a file "dummy.txt" in windows with e.g. notepad ->
> * commit it
> * check it out in linux
> * opened with emacs
> -> I still see those annoying ^m

After you added the file, check the properties by selecting the file,
right-click, choose "properties" and go to the Subversion tab.

> My first guess was that my Config file was not read by tortoiseSVN
> To test this I did put some nonsense-line in the Config -file -> My
> tortoiseSVN however gave a fault he could not interpret the
> configuration file. I therefore conclude tortoiseSVN indeed does read
> this file. It only chooses to ignore the settings defined in this
> configuration file :)

It doesn't ignore those settings. They will even override any settings
you do in the settings dialog!

> Can anybody please give some advice what went wrong?
> Is this specific to win2000?
> Are there 'hidden' variables in the registry that have higher 'priority'
> than the ones defined in the Config-file?

No. The config file has a higher priority than the registry settings.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Dec 17 12:46:15 2004

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

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