AniDB:CSS DEV: Difference between revisions

Line 13: Line 13:


==Connecting to SVN==
==Connecting to SVN==
First thing you need a client. You can of course use any svn client you want, but we recomment [http://tortoisesvn.tigris.org/ Tortoise SVN] for windows user as it nicely integrates into explorer and makes it, as such, very easy to use. After that you specify a dir on your hdd where you want to put the files and checkout the current cvs version
First thing you need a client. You can of course use any svn client you want, but we recomment [http://tortoisesvn.tigris.org/ Tortoise SVN] for windows user as it nicely integrates into Explorer and makes it, as such, very easy to use. After that you specify a dir on your hdd where you want to put the files and checkout the current CVS version
 
For Mac users we recommend [http://rapidsvn.tigris.org/ RapidSVN]. RapidSVN does not integrate with the Mac Finder as much as Tortoise does with Explorer. Instead it is a standalone app that you use to browse the files on the SVN server (Repository) as well as your local files (Working Copy).


By SVN Client: svn://dev.anidb.info/svn/trunk<br/>
By SVN Client: svn://dev.anidb.info/svn/trunk<br/>
Line 25: Line 27:
After installing a version and having picked a dir, where to put your stuff right click in the new dir and select '''checkout''' In the following dialog enter svn://dev.anidb.info/svn/trunk/ in the url field. This will download the whole content of the svn to this dir. After this is done you will notice a green thingy in the file and dirname icons. (This means your local version matches the version in the SVN Once you edit any file it will turn red)
After installing a version and having picked a dir, where to put your stuff right click in the new dir and select '''checkout''' In the following dialog enter svn://dev.anidb.info/svn/trunk/ in the url field. This will download the whole content of the svn to this dir. After this is done you will notice a green thingy in the file and dirname icons. (This means your local version matches the version in the SVN Once you edit any file it will turn red)


To add new content you can create new files and dirs like you are used via explorer. Editing the files can be done via any editor you want as well. You will notice no green thingy turning up for anything new you created. This menas the file is not in the svn and henc enot recognized. You have to add them first. In the context menu you will find an option who would have guessed it named '''add'''. This only creates a placeholder in the SVN. No actual content is written yet.
To add new content you can create new files and dirs like you are used via explorer. Editing the files can be done via any editor you want as well. You will notice no green thingy turning up for anything new you created. This means the file is not in the svn and hence not recognized. You have to add them first. In the context menu you will find an option who would have guessed it named '''add'''. This only creates a placeholder in the SVN. No actual content is written yet.
Deleting things works analog. You first have to delete the placeholder.
Deleting things works analog. You first have to delete the placeholder.


After you have edited, added or even deleted some things you still have to commit your changes. This will write the things to the SVN. You can commit on a file or dirlevel. Meaning you can commit a big change with multiple files or folders involved or just specific files. '''To not spam us all into oblivion with SVN mails it's recommended to bundle some commits.'''
===SVN via RapidSVN===
To get started, run RapidSVN and go to '''Repository -&gt; Checkout''' and enter svn://dev.anidb.info/svn/trunk in the URL field and your desired local directory in the Destination Directory field.
 
You may now create/edit/delete any files or folders in your working copy dir.  Any changes you make will be automatically recognized and highlighted in the RapidSVN file browser: items edited or deleted will have a red icon,  and items created will have a question mark icon.  To add created items to the SVN right click on them and choose '''Add''' (or select them and hit '''cmd+A''').  Note that Adding only lets them be recognized by the SVN, it does not commit their creation to the server. To commit changes, select the files, right click and choose '''Commit'''. You will be given a dialog box in which you may annotate what this commit entails.  You may choose to leave this blank, but it's good practice to log your changes so others know what you've changed.
===Committing===
After you have edited, added or even deleted some things you still have to commit your changes. This will write the things to the SVN.  
 
You can commit on a file or dirlevel. Meaning you can commit a big change with multiple files or folders involved or just specific files. '''To not spam us all into oblivion with SVN mails it's recommended to bundle some commits.'''


Take also note that you should before editing anything '''always''' update your local files with the ones in the SVN.
Take also note that you should before editing anything '''always''' update your local files with the ones in the SVN.
111

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.