Wednesday 20 August 2014

Integrating Tortoise SVN (Source Version Control) into Qlikview

What is Tortoise SVN?
TortoiseSVN is a really easy to use Revision control / version control / source control software for Windows. It is based on Apache™ Subversion (SVN)®; TortoiseSVN provides a nice and easy user interface for Subversion.

TortoiseSVN is free software for software developers (programmers). It helps programmers manage different versions of the source code for their programs. Tortoise SVN is a Subversion client, implemented as a Microsoft Windows shell extension.




Note:-Before Setting up the SVN ,make sure you use the compatible versions for installing Apache Server and Subversion 32 Binaries

Setting up the Tortoise SVN in 10 simple steps:-



2.Right click on an empty folder and choose TortoiseSVN -> Create repository Here

3.Install Apache Windows Server from
4.Get 'Subversion Win32 binaries for Apache' and put in C:\svn

5.Copy C:\svn\bin\mod_authz.svn.so and C:\svn\bin\mod_dav_svn.so to C:\Program Files\Apache Software Foundation\Apache2.2\modules

7.Edit C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf


8.Add/uncomment the following lines to the LoadModule section:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so


9.Add the following to the end of the file:

DAV svn
SVNPath (path to the svn repository you made)
AuthType Basic
AuthName "Subversion repository"
AuthUserFile passwd
#AuthzSVNAccessFile svnaccessfile

#allow only authenticated users to access
Require valid-user

# allow read access to all, write access to authenticated users only
#Order deny,allow
#
#      Require valid-user
#

Next you need to create some users that can access your SVN repository through Apache 

10.Open command prompt at C:\Program Files\Apache Software Foundation\Apache2.2

bin\htpasswd.exe -c passwd (username you want to add)

Note: it will prompt to set the user's password

run the Apache Server

On the router, make sure to enable port forwarding for TCP port 80 (www) and 3690 (svn)

Test the Apache Server to make sure it's working
:
http://localhost -> does the web server work?
http://localhost/svn -> does mod_dav, svn modules & authentication work on the server?
http://server-ip-> (this is your external ip) does remote access work for the server?

3 comments:

  1. Hi Sandeep,
    Thank you for sharing. I am planning to setup source control of my qlikview files. I have installed TortoiseSVN.
    I cannot locate the files ..\bin\mod_authz.svn.so or ..\bin\mod_dav_svn.so
    Help!?

    ReplyDelete
  2. Hello Kris,

    First you have to install win32 binaries from http://www.apache.org/dist/httpd/binaries/win32/

    Then you will be able to the see the respective files in the folder

    C:\Program Files (x86)\Subversion\bin

    ReplyDelete
  3. Hi,

    I have a servidor with SVN installed. My servidor Qlikview is in other IP.
    I need to install a tortoiseSVN in servidor QlikView for access the SVN repository?

    ReplyDelete