UsingSubversion

From Peragro Tempus
Jump to: navigation, search

Installing

Download TortoiseSVN for Windows. The current version is located at:

win32: http://downloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.4.8.12137-win32-svn-1.4.6.msi?download

win64: http://downloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.4.8.12137-x64-svn-1.4.6.msi?download

After installing, you don't need to restart your computer. Just logout and log back in.

Configuration

  • Windows XP

C:\Documents and Settings\YourUserName\Application Data\Subversion\config

  • Windows Vista

C:\Users\YourUserName\AppData\Roaming\Subversion\config

  • Linux

~/.subversion/config

Open it up in your favorite text editor. Most configs have some default settings. If the following lines exist, make sure that they are uncommented (remove # from beginning of line), otherwise add them.

Global ignores

This filters out specified files so they won't show up in svn status.

[miscellany]
global-ignores = *.blend1 *.blend2 *.lnk *.bak Thumbs.db

Auto props

Set the right properties on specified file types.

[miscellany]
enable-auto-props = yes

[auto-props]
*.c = svn:eol-style=native
*.cpp = svn:eol-style=native
*.cxx = svn:eol-style=native
*.h = svn:eol-style=native
*.pl = svn:eol-style=native
*.py = svn:eol-style=native
*.php = svn:eol-style=native

Jamfile = svn:eol-style=native
*.jam = svn:eol-style=native
*.cslib = svn:eol-style=native
*.tlib = svn:eol-style=native

*.po = svn:eol-style=native
*.am = svn:eol-style=native
*.ac = svn:eol-style=native
*.in = svn:eol-style=native

*.dsp = svn:eol-style=CRLF
*.dsw = svn:eol-style=CRLF
*.sln = svn:eol-style=CRLF
*.vcproj = svn:eol-style=CRLF
*.nsi = svn:eol-style=CRLF
*.manifest = svn:eol-style=native

*.sh = svn:eol-style=native;svn:executable
*.txt = svn:eol-style=native;svn:mime-type=text/plain

*.csplugin = svn:eol-style=native

Checking out

Follow the instructions for checking out a repository.

The following are the URLs to use depending on what you want to get.

PT art: https://cyanox.com/ptart/

PT exported art: https://cyanox.com/ptartexport/

PT source code: https://cyanox.com/peragro/trunk/ (also pulls exported art)


Note: Avoid using peragro.org domain here as the ssl certificate is for cyanox.nl and its the only domain that actually is configured to accept https connections.

Checking out a working copy

See http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-checkout.html

Sending your changes

You will probably want to submit changes you made to your local repository to the master repository located on the peragro server.

See http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-commit.html

Remember to always add a commit message. If not, you will get a 'pre-commit' hook error.

you will get the same error when using file/folder names including: capital letters, non-ascii characters, hyphens,.. in the PT art repository. Avoid using those!