1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Documentation:SVN

From lejos

(Difference between revisions)
Jump to: navigation, search
(Tortoise (Windows))
(Command line client (UNIX))
Line 4: Line 4:
of the command line client.
of the command line client.
If the file already exists, you should merge the settings in the file with the ones given below.
If the file already exists, you should merge the settings in the file with the ones given below.
-
Simply appending the content will not work.
 
Note, that the sections [miscellany] and [auto-props] usually already exist in the default config file.
Note, that the sections [miscellany] and [auto-props] usually already exist in the default config file.
 +
Simply appending the content will not work.
== Tortoise (Windows) ==
== Tortoise (Windows) ==

Revision as of 21:37, 24 February 2011

Contents

Command line client (UNIX)

The SVN client config file is located at $HOME/.subversion/config and it should be created at first use of the command line client. If the file already exists, you should merge the settings in the file with the ones given below. Note, that the sections [miscellany] and [auto-props] usually already exist in the default config file. Simply appending the content will not work.

Tortoise (Windows)

Start the Tortoise Settings (Settings in the TortoiseSVN program folder of the start menu). On the left side, click General. Then, on the right side, click the "Edit" Button. It should open an instance of notepad.exe that allows you to edit the SVN client configuration file. Integrate the options given below into this configuration file. Note, that the default config file already includes the sections [miscellany] and [auto-props]. Simply appending the content will not work.

NetBeans

On UNIX systems, the config file is located at $HOME/.subversion/config (that's also the one used by the command line client). On Windows system, the config file is located at %APPDATA%\Subversion\config (that's also the one used by Tortoise). The file should be created at first use of the SVN client. Once it has been created, open it, and merge the settings given below into the config file. Note, that the default config file already includes the sections [miscellany] and [auto-props]. Simply appending the content will not work.

Eclipse + Subversive

You create a file with the contents below. It doesn't matter, where this file resides. It's just temporary. After this procedure, it can be deleted. In Eclipse, chose Window->Preferences in the menu. Then, on the left, unfold Team and SVN. Then click "Properties Configuration".

In the "Automatic properties"-Tab, you can import the previously created file into Eclipse. However, note that the import does not merge the imported rules with the existing ones in any way. So after importing the same file twice, any entry in the List of automatic properties exists twice. Make sure to delete all colliding rules before importing.

Eclipse + Subclipse

TODO

Config file content

[miscellany]
enable-auto-props = yes

[auto-props]
.project     = svn:mime-type=text/plain;svn:eol-style=native
.cproject    = svn:mime-type=text/plain;svn:eol-style=native
.cdtproject  = svn:mime-type=text/plain;svn:eol-style=native
.classpath   = svn:mime-type=text/plain;svn:eol-style=native
Makefile     = svn:mime-type=text/plain;svn:eol-style=native
Makefile.*   = svn:mime-type=text/plain;svn:eol-style=native
*.mak        = svn:mime-type=text/plain;svn:eol-style=native
*.java       = svn:mime-type=text/plain;svn:eol-style=native
*.properties = svn:mime-type=text/plain;svn:eol-style=native
*.bat        = svn:mime-type=text/plain;svn:eol-style=native
*.sh         = svn:mime-type=text/plain;svn:eol-style=native
*.py         = svn:mime-type=text/plain;svn:eol-style=native
*.htm        = svn:mime-type=text/plain;svn:eol-style=native
*.html       = svn:mime-type=text/plain;svn:eol-style=native
*.php        = svn:mime-type=text/plain;svn:eol-style=native
*.css        = svn:mime-type=text/plain;svn:eol-style=native
*.xsl        = svn:mime-type=text/plain;svn:eol-style=native
*.xml        = svn:mime-type=text/plain;svn:eol-style=native
*.txt        = svn:mime-type=text/plain;svn:eol-style=native
*.xhtml      = svn:mime-type=text/plain;svn:eol-style=native
*.properties = svn:mime-type=text/plain;svn:eol-style=native
*.prefs      = svn:mime-type=text/plain;svn:eol-style=native
*.h          = svn:mime-type=text/plain;svn:eol-style=native
*.c          = svn:mime-type=text/plain;svn:eol-style=native
*.cpp        = svn:mime-type=text/plain;svn:eol-style=native
*.s          = svn:mime-type=text/plain;svn:eol-style=native
*.S          = svn:mime-type=text/plain;svn:eol-style=native

*.bin    = svn:mime-type=application/octet-stream
*.so     = svn:mime-type=application/octet-stream
*.dll    = svn:mime-type=application/octet-stream
*.jnilib = svn:mime-type=application/octet-stream
*.gz     = svn:mime-type=application/octet-stream
*.zip    = svn:mime-type=application/octet-stream
*.rar    = svn:mime-type=application/octet-stream
*.jar    = svn:mime-type=application/octet-stream
*.doc    = svn:mime-type=application/octet-stream
*.pdf    = svn:mime-type=application/octet-stream

*.jpg    = svn:mime-type=image/jpeg
*.png    = svn:mime-type=image/png
*.gif    = svn:mime-type=image/gif
*.ico    = svn:mime-type=image/x-icon
Personal tools