Setup an SVN Server? - windows

Does anybody know how to setup a basic SVN server on my windows pc? I want to create an SVN repository to store the code for my home projects I've got lined up.
Anyone know how to do this?

Install VisualSVN Server. The server part is free. You can also just use any SVN tool to just create local repositories on your file system if you like. My favorite client side tool is TortoiseSVN.

I can strongly recommend VisualSVN. It's very easy to setup, configure and use.
I've installed it recently and have found it utterly pain-free. SVN client-wise, I'd recommend TortoiseSVN. It integrates directly with Explorer and is, again, easy to use.
If you're working with Visual Studio, AnkhSVN is a great client that integrates into VS and doesn't seem to have any problem with being used side-by-side with TortoiseSVN.

I use VisualSVN on my Windows 2008 server and it works great. I then use TortoiseSVN on my client machines. The installation is painless and you should be up and running in no time.

If you are the only one accessing the repository all you need is tortoisesvn. You can make a local repository anywhere you want just by right clicking and selecting "Create Repository Here" then just use the file path for the URL.

I would also recommend Visual SVN if you like to get SVN installed on your Windows PC. There is a nice tutorial that describes installation and configuration process.
However think twice before hosting your product locally as that isn't the best option.

I would also Check out Assembla. Online hosting for both SVN and Git. I have used both VisualSVN and Assembla for personal projects.

Use ubersvn for personal use it is working fine and it's freeware.
The program contains all the dependencies needed to set up and run an Apache Subversion server on Windows, Linux or Mac OS X operating systems
.Check this here

What is the final veredict? for a single user local repository what would be the best option:
just create local repositories with TortoiseSVN (simpler and less
resource consuming)
install VisualSVN server to get the extra functionality it offers
(for example, the automatic backups are quite interesting..)
The idea of using VisualSVN server in my local machine with the automatic backups stored in a google drive folder in order to keep the repository in case of catastrophe sounds good, but maybe is a bit overkill.. is it heavy the server initialization? the machine is only booted while I am working in my spare time.. if the server takes no negligible time to start every time I turn on the PC maybe the first option is better.

Check Beanstalk it's not really an answer to the question you asked, but it might save you a lot of trouble. You could also check the VM marketplace, there are many virtual machines that would get you up and running super fast.
Here's also a very nice one called PMRepo, it includes Trac, Subversion, and Hudson in one VM.

If you want to create SVN repo, you can use this VisualSVN
By using this tool, you can easily create SVN repo and it will give it's REPO URL. so you can use it for cloning. It is the easiest way to create repo in any machine and use the its repo URL

before setting up SVN you need:
1.Install Putty http://www.putty.org/
2.Creat Droplet on Digital Ocean
3.Install Apache,Install PHP,Install phpMyAdmin
after that follow steps on below link:
https://progtec.wordpress.com/2015/10/18/how-to-setup-svn-server/

Related

Version control system help for a single developer

I'm currently a single developer working with the following.
Mac for all computing / code requirements
Eclipse / Dreamweaver for code editing
Windows Server 2008, CF8 IIS for my dev server
Currently when I develop all my apps, I'm starting to find that I'm really in need of an VCS to manage the code as I'm playing that fun game of simply renaming files with v1, v2 etc but this is becoming a nightmare when I start work the next week as you can probably imagine.
My issue is, I'm not sure where to start, what VCS should I use as I would like to store everything on my local network and as my code writing machine is a Mac, and my dev server is a windows machine I'm not sure what products should I look at for an VCS.
If anyone out there is in a similar position i would love to hear how you have your environment set up so you can manage your code as this is proving to be a bit of a nightmare..
thanks in advance
I have the same requirement and setup.
I use Visual SVN Server on my dev machine to host all of my repositories. (Windows 2008 R2)
http://www.visualsvn.com/server/
I use TortoiseSVN on Windows for general SVN tasks:
http://tortoisesvn.tigris.org/
I use AnkhSVN for Visual Studio SVN support:
http://ankhsvn.open.collab.net/
I use the built in SVN command in Mac for general SVN tasks:
http://svnbook.red-bean.com/
On Mac I also use Versions for a graphical SVN front end:
http://versionsapp.com/
Everything except Versions for Mac in this list is free.
As for the client, you can use the subversive plugin for Eclipse. Simply go to Help -> Install New Software -> (Select your version of Eclipse) -> Collaboration -> Subversive. Very easy to use.
There are many, many SVN options for windows. http://willperone.net/Code/svnserver.php This tutorial refers to TortoiseSVN, but that's just one option of many. Also consider that running it under IIS may not be desirable (http://stackoverflow.com/q/2165540/684934).
I would sign up for a free hosted SVN service
http://www.atlassian.com/hosted/bitbucket/
And use either a SVN plugin or a Tortise / SmartSVN tool to commit.
Commit your code daily, or whenever you get to a working set. You will have unlimited history etc. Its also great as your happy to delete chunks of code / files when you think they aren't needed, and if you find they are needed later, you can still get them.

Experiences with the various ways of running svnserve on Windows

Is there anyone out there that can share experiences with the various flavours of running svnserve on Windows. I'm using it mainly for a small hobby project that I share with friends, so it will run on my desktop.
Using the Collabnet Subversion Edge seems a bit heavy weight. Any drawbacks in just run 'svnserve'? I recently found VisualSVNserver which seems to add some easy administrative functions.
I have good experience with VisualSVN server, very easy to set up and configure user accounts.
It is also very easy to upgrade, just run the latest installer and you're done.
With VisualSVN you can run HTTPS with a self signed certificate. If you just run svnserve you're left without encryption and that is not recommended if you plan to access your server from the internet.
Keep in mind that whatever solution you choose they all use standard svn as the backend and you can easily move your repositories from one solution to another.
If you plan to make your project open source you can host your code at sourceforge or codeplex.

Setting & finding a svn repository on a system in LAN

I have installed TortoiseSVN on machine 192.168.1.56, & want to synchronise with it from 192.168.1.60, when i insert the repository address in URL like this "file:///192.168.1.56/D:/Repository" and click finish, i get the message "Location information has been specified incorrectly" what is the proper format.
It is able to do that on LAN.
1. Remember to share the folder you use as repository
2. On pc B, select SVN checkout..., click the browse button, locate to that shared folder, like this:
And it's done.
Have you installed TortoiseSVN or a Subversion server? For the svn client TortoiseSVN you need a server. In your case I would recommend to use a svn server with a graphical user interface for Windows: http://www.visualsvn.com/server/
A valid URL may look like this svn://192.168.1.56/repository. The repository has to be created on the server.
Try
file://192.168.1.56/Repository
I am not installing the server because I didn't want my computer resources to be used by the server (as I will be using this computer as a desktop as well) ,Also we are sharing among 2 members only so it worked for me in-spite of some disadvantages.
Actually TortoiseSVN recommends not to do that as you can read here:
If you were thinking about setting up a multi-user repository on a network share, think again. Read the section called "Accessing a Repository on a Network Shareā€¯ to find out why we think this is a bad idea. Setting up a server is not as hard as it sounds, and will give you better reliability and probably speed too.
I recommend you to set-up svnserve and you can check how to do it in this TortoiseSVN step-by-step tutorial to achieve it. Otherwise you will need to install and set-up WebDAV (e.g. libapache2-svn) in a capable web server (e.g. apache2).

I currently use SVN with Linux. How do I add files from my Windows Desktop?

You know, the regular "svn commit". "svn up."
When I did svn co, it was linked with SSH.
svn co +ssh or something.
How would I link this with Windows? I'm using Windows and I'd like to put some code i this SVN. What tools do I use to get started? Can I checkout normally, with the Linux syntax?
For Win you REALLY wan't to use http://tortoisesvn.tigris.org/. It's a GUI to SVN and facilitates things a lot.
EDIT
You also might find this tutorial helpful: http://tortoisesvn.net/ssh_howto.
Cheers.
If you simply want to use a Subversion client on Windows, the best option is TortoiseSVN.
If you want to have your own Subversion repository, then do the following.
Subversion involves two kinds of parties: the server, which has all the data necessary to construct the repository, and the client, which performs most of the user-initiated operations against the repository. You need to do a few things:
Set up a Subversion server.
Add or create the relevant repositories.
Make sure the server is visible to all the clients that want to see it.
Then each client simply accesses the server the same way, e.g. svn co http://mycomputer/svn/shared/trunk.
Yes you can use the normal syntax but it's probably easier to use tortoisesvn which gives you a nice explorer plugin
If you're coming from Linux to Windows, you'll want to install cygwin. Lots of tools you'll really miss on Windows are available from cygwin.
It's good to know that TortiseSVN is there, but it's just a svn gui. It's unlikely that anyone coming from a Linux environment would be interested. I used it briefly then got rid of it.
If you want to check out repositories by URL, you will need to set up Apache, including the DAV modules. Check here: https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-5902186.html
Another option over tortoisesvn, if you use linux and windows (like me) AND you use eclipse on both is to use the eclipseSVN. This way usage on both OSes are the same. You can get it by doing a Software Updates in Help of eclipse.

What are your experiences running SVN on Windows?

I'm curious to hear the experiences of those who are currently running their SVN server on Windows.
Jeff Atwood has a post on how to setup SVN as a Windows service. It's a great first step, but it doesn't touch on other topics, such as:
What to use for a web-based repository browser? WebSVN can work on Windows, but it ain't pretty.
How to manage the passwd file?
Is it possible to integrate with Active Directory without running Apache?
Strategies for backing up the repository.
Useful global ignore patterns for Visual Studio development (suggestions here, here, and here for example).
Our company switched from SourceGear Vault to Subversion about one month ago. We've got the basics down pat, but would love to discover people's tips and tricks for running SVN in a MSFT world.
Use VisualSVN Server. It integrates with Windows authentication and it handles all the apache setup. It's as painless as SVN can be on Windows.
VisualSVN is the way to go. The built-in Active Directory support is very easy to use.
I have found that VisualSVN is about 50% slower than running SVN as a native service. I always assumed
that was because of accessing via http:// with Apache, which seems like it would have to be slower
than accessing via svn://, which is native TCP/IP.
The Experiment
In the last 30 minutes, here's what I did:
Installed VisualSVN on port 8080, side-by-side with my existing SVN install
Imported three existing repos into VisualSVN
Kicked everyone else off the server
Did side-by-side comparisons of a full svn checkout
Results
Repo 1: 652 files, 273 directories, 60.1MB
23 seconds for VisualSVN over http://
16 seconds for SVN over svn://
Repo 2: 4623 files, 964 directories, 127.9MB
2 minutes, 18 seconds for VisualSVN over http://
1 minute, 30 seconds for SVN over svn://
This is on identical hardware, with the exact same repository. I like how easy VisualSVN is, but AD integration and GUI aren't worth a 50% performance hit.
Anyone else seen this difference? Am I doing something wrong just following along with the default installation options?
I have a fairly indepth tutorials on my blog http://tv.inner-rhythm.co.uk/ on how to set SVN up with Apache and Trac which we use at my company which works for us.
I use a combo of VisualSVN and Tortoise. It doesn't integrate well with visual studio but you can use other plugins/apps for that.
Trac is certainly the best web based project management software I use, it integrates with subversion so you can see timelines of commits and diffs of each versions, it allows tickets and bug reports, and has a built in wiki.
http://trac.edgewall.org/wiki/TracOnWindows
A little knowledge of python and it is easy to get up and running (if your on windows though, use the tracd server: http://trac.edgewall.org/wiki/TracStandalone (this link will show you how to install it as a windows service).
I recommend TortoiseSVN. It adds SVN capabilities into Windows Explorer. In addition TortoiseSVN check to see if the IDE you are using has support for SVN.
Rich Strahl just posted a blog entry on Running VisualSVN Server for Subversion Source Control. Worth a read:
http://west-wind.com/weblog/posts/480534.aspx
For backing up, I wrote a combination of a batch file and a VBScript that runs once a week as a scheduled task. It:
Scans through a particular folder on the file system recursively looking for SVN repositories (we have a multitude of small repositories, as we found that one uber-repository quickly became difficult to maintain and intolerably slow when used with TortoiseSVN);
Uses svnadmin hotcopy on each repository found to create a backup;
7zips all of the backups into a single archive;
Mounts a share on a SAN and copies the archive over;
Deletes all of the temp files;
Emails a "success" notification.
VisualSVN Server + Trac + TortoiseSVN + Ankhsvn.
Done. Smooth as silk. What Visual SourceSafe should have been.
I think you are seeing the difference betweeen the svn protocol and hosting the svn protocol on another.
Similar performance decreases when using svn+ssh compared to svn.
The ease of setup, has made it a no brainer for my team, we just threw it on a vm and ran.
Running SVN under apache really isn't that hard. And you can use mod_auth_sspi to integrate with active directory.

Resources