ChandrasekharRao.D

Create SVN Repository

Creating Svn Repository
Step:1  Download tortoise svn  --> https://tortoisesvn.net/downloads.html
Step2:    Download subversion -->  https://sourceforge.net/projects/win32svn/
Step3:   Install tortoise svn .
Creating svn repository through command prompt.
Step:4  open command prompt Run as administrator. (Follow below guidelines)

If you want to create only one repository you may create only one  only the above am creating three repositories .
Creating svn repository through GUI
create newfolder(anyname)  any location  on your pc -->right click-->tortoise svn -->createrepositoryhere-->ok
Ex: c:/users/chandu/desktop/svnrepository
      Repository created.
Installing SVN service to our pc for accessing through svn protocall
Step:5  Install subversion to PC
Step6:
If you would like to just cut and paste that command, here it is:
sc create svnserve binpath= "\"C:\Program Files (x86)\Subversion\bin\svnserve.exe\" --service -r C:\SVNRepository" displayname= "Subversion Server" depend= Tcpip start= auto .
Let me break down the elements in the command and explain them in more detail.
1. sc create svnserve:
command says that we are creating a service and that we want to give it an identifier of “svnserve”. You could use a different identifier if you prefer. The only time this name will matter is if you want to manage the service from the command line. For example the command “net start svnserve” can be used to start the service. In that example, the service identified by the name “svnserve” would be started.
2. binpath= "\"C:\Program Files\CollabNet Subversion Server\svnserve.exe\" --service -r C:\repositories"
It is telling Windows the name of the program to run when it starts the service as well as the arguments. Notice that there is some funky usage of double-quotes and escaping. Since the parameter value has spaces, the whole thing needs to be enclosed in double-quotes. In addition, since the path to the svnserve executable contains spaces, it also needs to be enclosed with double-quotes. However, since those double-quotes are inside of another set, they need to be escaped. So be sure to enter the command exactly as shown.
3.      You have to include the --service option as an argument as that is what tells svnserve to respond to the Windows service life cycle events. You must NOT include any conflicting options such as --daemon (-d), --tunnel, or --inetd (-i). You can include additional options such as the -r option shown above. If you want to change the default port, you would want to include the --listen-port NNNN option as an argument.
4.  displayname= "Subversion Server"
This value allows you to specify the name you will see for the service when working with the Services GUI in Windows. If you have embedded spaces in the name, be sure to enclose it all in double quotes as shown.
depend= Tcpip
This value configures the service so that Windows does not attempt to start it until the TCP/IP service has started.
start= auto
This value configures the service to start automatically when Windows starts.
Now that we have added the service, we could start it by running the command:
net start svnserve
Instead, let’s view the service in the Windows GUI and start it from there. The location of the Services application has moved around in various versions of Windows. It is generally available in the Administration Tools folder with the name “Services.”
Step:7  windows button -->services
Step:8 Test The server
Open the Windows command prompt and run the svn info command to verify that we can connect to the server.
In this example, I used the svn info command and gave it the URL to the repository I created and named “dev”. Note that the repository name is exposed in the URL, but not the on disk location (C:\repositories). I can access different repositories just by using a slightly different URL. The three repositories I created at the beginning would be accessed via these URL’s:
If you were running these commands from a different machine, you would need to specify the IP address or name of the server in place of localhost. If you used a different port than the default, by using the --listen-port option on the svnserve command, then you would need to include the port number in the URL:
svn://localhost:3691/dev
step: 9  we have svn repository location
url -:  svn://<portNumber>(or) (pc-name)/<svn repositoryname>
Ex:svn://192.168.1.117/dev
Step :10 Here we can add existing or newly created project folder
Open repository location  Ex: c:/users/chandu/desktop/svnrepository then right click-->repo browser
Here appear on window -->right click -->add newfolder--> add here existing folder
Step:11  open  any browser
Enter url svn://localhost/dev -->enter -->choose svnclient-->ok
Here you can see added folder so you can check out eclipse these project with in network.



If You encounter a connection timed out error while you are trying to  connect from remote desktop.
You need to do the following steps.
Step 1: You need to check that  listening port of svn server is open or not . If not you should open that port .
We tested this approach so you can  follow this.
Step2 : In order to  see that  port is open or not in cmd prompt type the following command netstat -an
            In  this list you can find the port numbers which are listening.
Step 3: TO Open Port number  on which svn server is running you have type the following command on Cmd prompt.       

netsh advfirewall firewall add rule name="Open Port 3690" dir=in      action=allow   protocol=TCP localport=3690
The Following Link Will give the details explanation about how to add port number through command prompt.

Another way is to open port number is : Follow the below link - we didn’t tested this one.
Author : Chandu