Changes between Initial Version and Version 1 of TortoiseSVN_Guide


Ignore:
Timestamp:
Nov 12, 2007, 7:27:42 PM (16 years ago)
Author:
erik (feneur)
Comment:

Moving the guide from the other wiki to the Trac wiki, and updating some small things

Legend:

Unmodified
Added
Removed
Modified
  • TortoiseSVN_Guide

    v1 v1  
     1=Using Subversion with TortoiseSVN=
     2''by Matt Holmes (Calefaction)''
     3
     4==Definitions==
     5'''Subversion; SVN:''' [http://subversion.tigris.org/ Link]
     6* "A version control system that is a compelling replacement for CVS in the open source community."
     7* It records the history and manages changes to a repository of files by multiple users.
     8* The programmers have been using a similar system called CVS for some time to manage our source code, and with SVN we've now rolled this out to include all game binaries/assets too.
     9* It takes care of ensuring that we don't overwrite each other's files when we commit files to it, and checks what you've already downloaded against what's in the repository so that it'll only download things that have changed since your last update.
     10
     11'''TortoiseSVN:''' [http://tortoisesvn.tigris.org Link]
     12* "A free/open-source client for the Subversion version control system."
     13* An easy-to-use tool that integrates with Windows Explorer. It is used to access the Subversion repository.
     14
     15'''Repository:'''
     16* Files are stored in a central repository. The repository is much like an ordinary file server, except that it remembers every change ever made to your files and directories. This allows you to recover older versions of your files and examine the history of how and when your data changed.
     17
     18==Section 1: Creating Your Account==
     19
     20Request an account from '''Philip Zaynar''' (Ykkrosh). '''Ensure you let him know your desired Password.''' You will also be given a User Name (typically your first name). This will be used as your personal login to access the SVN repositories.
     21
     22==Section 2: Getting and Installing TortoiseSVN==
     23
     24You can obtain TortoiseSVN from [http://tortoisesvn.net/downloads here]. Select the latest version available for your operating system. Follow the standard installation procedure and reboot when asked.
     25
     26==Section 3: Making your first Checkout==
     27
     28Now we need to point you to the correct SVN URL and checkout the current SVN source tree onto your harddrive. The current SVN trunk url is:
     29
     30For anyone except programmers:
     31
     32      http://svn.wildfiregames.com/svn/ps/trunk/binaries
     33      http://svn.wildfiregames.com/svn/ps/trunk/docs
     34
     35For programmers:
     36
     37      http://svn.wildfiregames.com/svn/ps/trunk
     38
     39''I also suggest creating a unique directory. I use the directory <tt>C:\0ad</tt>, but feel free to use whatever directory you see fit.''
     40
     41''The directory you check the game out to should ideally have no spaces in its path. For example, C:\My Documents\0AD may cause problems.''
     42
     43Next, follow these steps to checkout the SVN tree.
     44
     45'''1''' In Windows Explorer, navigate to the directory where you want to check the SVN tree out to.
     46
     47'''2''' Right click to bring up the context menu. Select 'Checkout...' in the SVN section of the menu:
     48
     49http://www.wildfiregames.com/~code/resources/guide/guide1.jpg
     50
     51'''3''' In the 'Url of repository' field enter the URL above. Leave all other fields at their defaults:
     52
     53http://www.wildfiregames.com/~code/resources/guide/guide2.jpg
     54
     55'''4''' After pressing OK, a dialog refering to caching the CVS server's host key could come up. Accept that key if it does.
     56
     57You should then be prompted for your account login. Enter the username and password you have requested. In some cases you may be asked for your password twice.
     58
     59Once your password has been succesfully entered, you should see the repository beginning to download:
     60
     61http://www.wildfiregames.com/~code/resources/guide/guide3.jpg
     62
     63Note: This will take a while. That's perfectly normal. You're checking out over a hundred megabytes of stuff. Leave it to get on with it, and go do something else for a while.
     64
     65Checkout puts a lot of strain on the server. If it times out, try checking out sub-sections of the repository at a time, or try again later when less members are downloading.
     66
     67==Section 4: Updating your files==
     68
     69A key component to any version control system is the ability to update your files to the latest versions available in the repository. Much like the rest of your everyday SVN operations, TortoiseSVN makes this extremely easy.  The following steps will detail how this is done:
     70
     71'''1''' Select the file, files or directories that you want to update ('''NOTE:''' I suggest updating entire modules of the project at a time. For instance, update the entire 'source' or 'binaries' module, or both. This will keep your entire source base in sync with the Subversion tree. If you have a reason to only update a subset of the projects objects, then you may do that as well)
     72
     73'''2''' Right click to bring up the context menu. In the SVN section of the menu, select 'Update...':
     74
     75http://www.wildfiregames.com/~code/resources/guide/guide10.jpg
     76
     77'''3''' You should immediately see a status dialog detailing what SVN is updating:
     78
     79http://www.wildfiregames.com/~code/resources/guide/guide11.jpg
     80
     81The next two sections describe how to add to or change the repository contents, and are only available to accounts with write access (artists and programmers).
     82
     83==Section 5: Making your first commit==
     84
     85Once you have made some changes and are ready to check them in, you will need to commit them. You can commit an entire directory (and all of its sub-directories), a group of files, or a single file. Use the following steps to commit files to Subversion:
     86
     87'''1''' Select the file, files or directories that you want to commit.
     88
     89'''2''' Right click to bring up the context menu. Select 'Commit...' in the SVN area of the menu:
     90
     91http://www.wildfiregames.com/~code/resources/guide/guide4.jpg
     92
     93'''3''' Enter appropriate comments about the changes in the 'Enter Log Message' dialog:
     94
     95'''The SVN comments are filtered so that they can appear on the 0 A.D. webpage and demonstrate our progress. Put a hash (#) in front of any line that you want to appear on the web log. All other lines will be ignored.'''
     96
     97http://www.wildfiregames.com/~code/resources/guide/guide5.jpg
     98
     99'''4''' Press 'OK'. The commit should begin and you should see the following status dialog:
     100
     101http://www.wildfiregames.com/~code/resources/guide/guide6.jpg
     102
     103==Section 6: Adding files to the repository==
     104
     105Before you can commit a new file to the repository, you must first add it. Adding files to the repository is much like committing them, just use the following steps:
     106
     107'''1''' Select the file, files or directories that you want to add.
     108
     109'''2''' Right click to bring up the context menu. Under the 'TortoiseSVN' sub-menu, select the 'Add...' option:
     110
     111http://www.wildfiregames.com/~code/resources/guide/guide7.jpg
     112
     113'''3''' Confirm which files you want to add to the repository:
     114
     115http://www.wildfiregames.com/~code/resources/guide/guide8.jpg
     116
     117'''4''' Press 'OK'. You will see a status dialog detailing what was added to the SVN repository:
     118
     119http://www.wildfiregames.com/~code/resources/guide/guide9.jpg
     120
     121'''NOTE:''' To finalise the addition of files to the SVN repository you must '''Commit''' the files you added! Follow the section on Committing files above to see how that is done.
     122
     123==Appendix==
     124* You can update your SVN password from http://wildfiregames.com/users/svn/svnadmin.php
     125
     126For programmers:
     127
     128* A log (showing all recent activity) and source browser is available via Trac, at http://trac.wildfiregames.com/