Using SVN with SourceAnywhere Hosted

SourceAnywhere Hosted provides multiple type of clients (e.g. Windows/Java GUI Client, VS Integration, Eclipse, Dreamweaver plugins, Command Line, SDKS) to meet the different needs of our customers. However, we get requests on how to use SourceAnywhere with enviroments like Windows Explorer, XCode/Dreamweaver on Mac from time to time.  So we worked out a SVNBridge which enables you to use SVN (which comes with wider integration) locally and push to SourceAnywhere database.  

The following diagram shows how SVNBridge of SAW hosted works.

In this article, I’ll share with you how to use SVN with SourceAnywhere Hosted by using SVNBridge.

1. Please sign up for a SourceAnywhere Hosted account first if you don't own one.

Note: The feature is available for version 4.2 (not public yet). Please contact us with your Organization ID so that we can move your SourceAnywhere Hosted account to version 4.2.
It won't affect the usage for those using version 3.0.1 Clients.

2. Install a SVN Client if you haven't done so. 

3. Download SVNBridge and unzip it to any location on your computer. You will need to download and install SourceAnywhere Hosted COM SDK version 4.2 on the machine.

4.  Update the scconfig.ini file as follows:         

SCID=123456(Your Organization ID)
SCPort=443 (80 or 443(SSL))
Repository=Default (your repository name)
TempPath=C:\Temp\ (the temp path of svnbridge)
SCBIP=192.168.1.110 (the IP of your machine with SVNBridge)
SCBPort=808 (the port for SVNBridge service)

5. Double click SvnBridge.exe to start the service.  

6. Now you can get your projects from SourceAnywhere Hosted through SVN.

a. In the working folder, you can right-click and choose SVN Checkout.

b. In the popup dialog box, enter the URL you’ve configured through scconfig.ini . In our case, the URL is http://192.168.1.110:443 (please check step 4). Please also enter the checkout directory. 

 

       

 The following Authentication will prompt:
Usernamerepository name\user name, for example "default\admin"
Password:  the password of the user

Note: check "Save authentication" to avoid further Authentication dialogs.

After clicking OK to confirm the entry, you can see the files/folders are in the source control. 

c. If you are familiar with SVN, you must know how to edit the files and interact with the database. After you update a file or project, right-click on the target. The command “SVN Commit” will help you upload the modifications to SourceAnywhere. More version control operations can be found at TortoiseSVN.           

The SVNBridge supports the following operations:

Update, Commit, Add, Get/Release Lock, Repo-browser