34 points · by mmastrac · 15y ago · 40 comments
http://subversion.apache.org/docs/release-notes/1.7.html
Some big changes in 1.7 extracted from the release notes:
Working Copy Metadata Storage Improvements
A key feature of the changes introduced in Subversion 1.7 is the centralization of working copy metadata storage into a single location. Instead of a .svn directory in every directory in the working copy, Subversion 1.7 working copies have just one .svn directory—in the root of the working copy. This directory includes (among other things) an SQLite-backed database which contains all of the metadata Subversion needs for that working copy.
svn patch
Subversion 1.7 features a new subcommand called svn patch which can apply patch files in unidiff format (as produced by svn diff and other diff tools) to a working copy.
Improved HTTP protocol usage
Subversion 1.7 offers a simpler HTTP protocol variant that can be used when connecting to supported servers. This simpler protocol (sometimes referred to as HTTPv2) requires fewer client-server round trips to establish a connection, making Subversion much more performant on high-latency network connections.
What are the advantages of using SVN over Git? (assuming one was starting a new project and hadn't yet chosen a VCS)
I believe this is why many people still use Subversion and Perforce, etc.
* Using a big repository for a bunch of related projects. Settings up a new project (not a new repository, but who can tell the difference?) is as simple as creating a new folder, then commiting it. Then you can directly checkout that folder if you need the single project. This beats SSH one-liners to set up new repositories.
* I usually have something like a "httpdocs"/"website" subfolder in my bigger projects. With svn, I just check out that folder on my web server. With git, I'd have to check out the whole project, which feels more like a kludge.
Edit: I should also mention that I prefer subversion's central repository approach and that I don't really need the distributed features of git but I can understand why Linus and kernel hackers do!
Naturally Git will catch up and supersede but currently they are focusing on other stuff.
As I remember, svn is more complicated, it has that separate svnadmin tool and relies on you to craft a suitable directory structure.
I used Subversion for over 4 years and suffered through the regular merge issues, connectivity issues ("huh, can't commit because I'm not connected"), line ending issues, you name the problem I had it.
Two days into using Mercurial I felt more confident with it than I had ever felt with Subversion. I could branch code without having to work with the server, I could commit on my own machine and later push changes... and the merges just worked. No praying for ten minutes, no stupid CR/LF vs. CR errors, nothing.
I guess you'd have a point about easy of use if you count on the excellent TortoiseSVN. In the beginning Mercurial and Git didn't have anything as nice as that.
I wouldn't be surprised if we see 'offline' commits in SVN.
* SVN is no simpler than Git
* Working with a team is easier to branch and merge
* The tools and community around Git are vibrant
Go use TRAC and SVN, and then hit yourself in the face with a brick a few times, and see which you enjoy more.
Maybe I'm in the minority.
* git clone
* git pull origin master
* git commit -a -m "ch ch ch ch changes"
* git push origin master
You really don't need to know any commands other than that, and if you find those too verbose, you can alias them. But then if you want the power of git branch and git merge, they are there for the using.
I used to use SVN, and at some point I took the leap and converted to Git, and I am a happy camper. As we have more and more developers working on various branches and projects, the power of Git becomes clear.
Subversion has been "out" for years now! Please move on to a DVCS as soon as you can and leave it to die a respectable death.