How To Use Subversion:
Getting help:
Create a checkout directory (e.g. /home/user/SVN):
Check out a new repository (e.g. eAthena SVN stable branch):
where URL is currently http://svn.eathena.ws/svn/ea/branches/stable
$ cd SVN
$ svn co URL
|
Note: If you do checkout from your home without first creating the directory, you will get a directory called stable created automatically. Adjust the command to suit your situation.
Update an existing repository (same example):
Update an existing repository to a revision (same example):
where number is the revision number
$ cd SVN/stable
$ svn up -r <number>
|
Getting revision number of source codes:
$ cd SVN/stable
$ svn info
|
Changing repository (rewriting URL):
where URL-old is the existing URL and URL-new the new URL
$ svn switch --relocate URL-old URL-new
|
Committing all the existant changes to the repository:
where <message> is the commit message in double quotes. (Note: This is only useful to persons with commit access.)
$ cd SVN/stable
$ svn commit -m <message>
|
Q&A
Is there a GUI subversion client?
Yes. You can visit Tigris.org and fetch WebSVN from their repository or search your distro installation media for rapidsvn. The former is a PHP web-based client while the latter a Linux package.
|