Using Subversion on Cygwin

Notes:

  • You must have the subversion package installed under Cygwin. Run Setup.exe and fetch the package from a Cygwin mirror, usually the same one which you used to install Cygwin earlier on.
  • Subversion is installed in the bin directory. You should be able to see the binary svn.exe in there.
  • It is assumed that you are starting in your Cygwin user home.
  • Take note that Cygwin Subversion works the same way as its counter part on Linux.

Cygwin and Subversion commands:

Launch Cygwin, of course.

cyg-10: Getting help on subversion
Getting help:
$ svn --help


Preparation and Compiling Athena

cyg-11: Creating a directory
Create Athena source repository on Cygwin:
$ mkdir /home/svn

Change directory:
$ cd /home/svn


cyg-12: Checkout http://svn.eathena.ws/svn/ea/branches/stable
Get Athena source code:
where URL is the target repository
$ svn co URL


cyg-16: Updating Athena source codes
Update Athena source code:
Note that URL is not required
$ svn up


cyg-13: Listing files in a directory
Check contents:
$ ls stable

Note that the directory name is different on the image.


cyg-14: Creating a Windows directory with Cygwin
Create export directory, e.g. C:\Athena, using Cygwin:
$ mkdir /cygdrive/c/Athena

This command is seldom used in Cygwin. Note the use of cygdrive to denote a FAT32 or NTFS partition and the use of slash instead of back slash.

If this directory is created, you must use the --force switch when exporting versioned contents from one directory to another, i.e. adding --force after "svn export".


cyg-05: The export command
Export source codes:
The above command will do svn export and make directory in one go
$ svn export stable/* /cygdrive/c/Athena

If Athena directory already exists, use the following command:
$ svn export --force stable/* /cygdrive/c/Athena


cyg-15: Getting revision number wiht svn info
To obtain revision number:
$ svn info