Reputation: 1259
Security is not an issue for our small team. Is there any compelling reason why we might need to use an SVN server of some sort, rather than just using files on a network share somewhere?
EDIT
Sorry--I don't think I communicated very well.
I want to use SVN for version control. I think that I do not need a "server". The team members can all point their SVN clients to a network location.
Is that good enough?
Or do I need a "server"?
Upvotes: 6
Views: 323
Reputation: 10580
Agent SVN is a Subversion plug-in for Visual Studio and it can be configured to use a file location for the repository and as such no server is required.
Upvotes: 3
Reputation: 107090
Subversion uses three main protocols:
svn:
http:
file:
There are a few others (svn+ssh and https), but they're related to the above.
If you use the file:
protocol, you don't need a Subversion server. All you have to do is point the file protocol to the directory where your Subversion repository lives:
C> svnadmin create C:\svnrepos\myrepos
C> cd C:\workspace
C> svn co file://C:/svnrepos/myrepos repos
In the above, I created a Subversion repository in C:\svnrepos\myrepos
and then went to another directory (very important!) and did a checkout. No server is running.
There are several issues with this:
file://
protocol doesn't track that. All you see is that changes were made, but not by whom.And, finally:
So, although you could put the Subversion repository on a network share and everyone can use the file://
protocol, there really isn't a very good reason to do that. In fact, I use Subversion as my own personal repository where I'm the only one using it, and I don't use the file://
protocol.
You can easily run svnserve
as a Windows service, so it automatically starts whenever your machine starts up. And, it's very simple to setup. There's simply no reason not to use it.
So, might as well go ahead and do it the right way anyway.
By the way, how are you using Subversion through Visual-Studio? I suggest you look at ankhsvn which allows you to access Subversion directly in Visual-Studio.
Upvotes: 1
Reputation: 444
Yes, you can create a repository on some folder and point your clients there, no svnserve
process or apache2
+ mod_svn
is really needed.
There are a however a couple of reasons why you should consider a server:
I don't know if these reasons are compelling enough for you, but you can indeed postpone the decision to go server until it starts to become unavoidable - even indefinitely if your team does never grow.
Upvotes: 3
Reputation: 8216
You need an SVN server process running somewhere. You cannot avoid it. It is a fundamental part of SVN, it is what provides access to your repository, and it is what the clients must point to.
We use VisualSVN. It takes almost no effort to install.
Upvotes: 0
Reputation: 2532
On a team of as little as two people, some sort of version control is a huge advantage over no version control. Being able to back-track through changes, branch code if you need multiple versions for demoing purposes, and using lock/unlock + merge to keep developers from murdering each others code is why you use SVN. Comes in handy when working alone on a project, too.
You can host SVN easily on Linux, Mac, Windows - you just need that machine to be network-connectable from the development machines.
Upvotes: 0
Reputation: 10419
Setting up a server is almost trivial, so I would ask why would you NOT want a server. But here are some other reasons:
Download and install something like Subversion Edge. This is trivial to install on Windows and it gives you a web UI to manage the server. You also get a web UI for browsing repositories which can be useful when researching a bug.
Upvotes: 0
Reputation: 80851
hmmm, subversion is not the right tool if you need security, it is the right tool :
Upvotes: 0
Reputation: 520
The main purpose of svn is for version control. Using files is not easy to keep versioning. And btw, you may setup the "svn server" local in your own pc
Upvotes: 1
Reputation: 1325
Imagine working on the same project with multiple people. And both are modifying the same file at the same moment. If you both work on that same fileshare that is going to be bad. Another reason for using some kind of source control is being able to keep track of changes. This way you can notify your collegue where he screwed up. :-)
Upvotes: 0
Reputation: 309008
SVN isn't about security; it's about maintaining history of your source code.
I can't think of a compelling reason why you would not want to set up an SVN server. I use one at home on my personal desktop for my own development. It's not about security; it's about keeping my source code history in case I screw up and want to revert.
It's also about habits: "First we make our habits, then our habits make us." Learn to do it right all the time, even in simple situations.
Upvotes: 0