Accessing the wxDev-C++ Sources from SVN

Tony Reina

wxDev-C++ is an open-source project. As such, we allow users to download our source code from our SVN repository on SourceForge.

It is really easy to do so using a GUI client like TortoiseSVN, and thus we will be demonstrating using that, however the steps should be easily adaptable to any SVN client you use (or the command line client).

 

Getting the Sources

Open up your file folder (Desktop > My Computer > C:). Then, right-click on an empty area of the folder. The popup dialog should look like this:

Right click on a folder to get the SVN popup

Click on SVN Checkout.... This dialog should appear.

The URL of repository is https://wxdsgn.svn.sourceforge.net/svnroot/wxdsgn/trunk. You can change the checkout directory to any empty directory on your computer.

Most users will want HEAD, which will correspond to the latest revision in the repository. Click "OK" and TortoiseSVN will start the download.

 

After the Checkout

You can edit and work on the files just as you normally would with your favorite editor (Delphi 6, Notepad, Paint, etc).

If you are a developer who's been granted write access to the source, you can commit your changes to SVN. Committing to SVN just means you are saving your changes to the SourceForge SVN server. This way when other developers checkout or update their source, they will see your changes. To commit your changes, go to the C:\wxdevcpp folder (or wherever you downloaded your files). Right click on the folder and the click the option that says "SVN Commit". Note that you'll need to provide your SourceForge username and password when prompted to prove that you have write access to SVN.

 

Committing to SVN

Note that on commits, the SVN dialog box will include a section for writing a comment. This is a great thing to do! You can let others (including yourself at a later time) know what changes you made and why. You can also leave notes as to what is still broken or reminders of what needs to be improved. Good comments are essential to good projects.

Also, note that there's a "SVN Update" as well. As the downward arrow indicates, this updates your files with the current SVN source (as opposed to commits which update the SVN source with your files-- hence the upward arrow). Updating will merge your working copy with HEAD so changes to the tree are reflected in your local copy. Updates are useful if another developer has committed changes to SVN after you checked out your files, so it's an quick way to make sure that you have the current sources.