r/programming • • Nov 16 '13

What does SVN do better than git?

http://programmers.stackexchange.com/questions/111633/what-does-svn-do-better-than-git
599 Upvotes

494 comments sorted by

View all comments

73

u/looneysquash Nov 16 '13

I see a lot of replies here that are "here's what you have to do to make this work in git". Which is nice and helpful.

But it doesn't mean that those things aren't problems. I think it actually emphasizes the problem.

I almost reminds me of the problems with Linux, at least back in the day. Sure, you can get everything to work, if you fight with it long enough and google enough and ask enough questions.

But I do like git. I wish the developers would read this thread and the SE thread, and make all of those things Just Work.

37

u/Hwaaa Nov 16 '13

I use Git but this is my biggest issue. I don't want to spend a significant amount of my time dealing with a version control system. Git is very powerful but it's a pain in the ass to use.

11

u/UsingYourWifi Nov 16 '13

This is why I use mercurial. Not that it's perfect, but i find it generally easier to use and figure out than git. It interfaces well enough with git, and feels like put some actual effort into the user experience.

8

u/crusoe Nov 16 '13

Whats a pain in the ass?

95% of what people are doing is the same as subversion

  • git checkout
  • git merge
  • git add
  • git commit
  • git push
  • git fetch
  • git pull

I don't see the complexity.

21

u/ClickerMonkey Nov 16 '13

Each of those commands has a dozen options to a new user and they don't know what to specify and what it all means.

→ More replies (3)

8

u/keypusher Nov 16 '13

Oh? What's the difference between push and commit in subversion? How about fetch and pull? Also in git you need to use rebase if you want the same type of commit history you would get from svn.

4

u/dehrmann Nov 16 '13

What's the difference between push and commit in subversion?

There's the frequent complaint that git commit is different from commit in every other VCS.

6

u/oursland Nov 17 '13

It isn't, though. Your commit does commit it to your repository. If you want to get that commit in the central/shared repository, then you have to push it.

The problem is that RCS/CVS/SVN users aren't used to having the repository locally.

4

u/[deleted] Nov 17 '13

The problem is that RCS/CVS/SVN users aren't used to having the repository locally.

This is a really big hurdle for newcomers to git. Not the fault of the tool, in fact not a fault at all.

→ More replies (1)

11

u/Silhouette Nov 16 '13

I don't see the complexity.

One of the most fundamental commands in any version control system is the one that shows you the history. The git-log(1) manual page runs to almost 20 screens on my largest monitor.

We could fit the entire source code for a useful version control system in that much screen space. That sounds complex to me.

1

u/Peaker Nov 17 '13

We could fit the entire source code for a useful version control system in that much screen space

Perhaps if you stretch the word "useful" far enough...

→ More replies (2)

2

u/yur_mom Nov 16 '13

All comands are complicated since everything can happen from remote repo or your local copy. The commands you stated all require more parameters unless they are relying on automagic features and then it can be even more confusing.

2

u/[deleted] Nov 16 '13

That's complicated for your average developer who essentially just wants to check out and commit. Merging local changes into a subversion repo already makes people freak out (and commit code with merge data in them...)

1

u/mgrandi Nov 16 '13

I just researched this yesterday, if you type git log, it shows all commit messages at once (using more), the revisionspec to show just the last commit is @{1} , you can do 'git log -1', but that is just shorthand for git -n 1, which just limits the log output to n commits, and if you have any filters or stuff it could change and not necessarily be the last commit.

For comparison, to show the last commit message in bzr, you can use python like slicing, like 'bzr log -r -1" or 'bzr log -r -2:-1'

Like he said, git is powerful but the command line API is very complicated in a lot of places

1

u/[deleted] Nov 17 '13

When once a month i want to commit only a part of changes i made to a file, i spend 10 minutes starring at git add --help

Yeah, i remember that there are two ways to do it, one which asks me interactively and another where i edit patch by hands. But i can't remember how to use both of them (well, i never ever figured out how to use interactive one, so i just use second one).

And that's the problem - many things in git i use only once in a while and every time i need to google to figure out how to do them.

2

u/ForeverAlot Nov 17 '13

I use git add -p (--patch) all the time. That alone is reason enough for me to pick Git over Mercurial. This is the one that will run through your change hunks and ask you if you want to stage (y) or not (n), occasionally allowing you to split hunks into smaller ones (s) and even manually editing hunks (e). I never use git add -i (the one that asks me what I want to do) because I only ever want the -p behaviour.

That said, manually editing hunks is tricky, because 1) the help text doesn't include all the information you need to do it right, and 2) if you split a hunk, then try edit it, kittens die. I'm generally not quite satisfied with how automatic splitting works (it's not clever enough) but it's a small thing I tend to curse silently over.

→ More replies (2)
→ More replies (1)

22

u/ceol_ Nov 16 '13

I'm surprised at the number of SE replies basically saying, "If you think those are problems, you just don't understand git!" Not every critique of your favorite tool is an attack on it.

3

u/[deleted] Nov 17 '13

That is actually one of the problems of git. It has to be understood. An SVN workflow is trivially easy. You can go from not having ever used source control, to happily checking in and out of SVN, with minimal external help, in a few minutes.

4

u/Kalium Nov 18 '13

In order to really use it, git seems to require full comprehension of its internals. This is akin to having to know every aspect of your car in order to start it correctly.

A common tool should not require such a level of understanding for basic usage.

→ More replies (1)

17

u/sufficientreason Nov 16 '13 edited Nov 16 '13

Summed up my experience with Git and Linux and other similar things perfectly. These are projects with massive all-encompassing flexible feature sets that can do anything any competitor has to offer, and yet seemingly no thought was given to making those features accessible to people who don't want to become devotees. SVN may be "old fashioned" and clunky, but it's focused, and its simplicity is an amazing feature. Probably one of the best a program can have.

Also, I'm seeing a lot of things here like "well, if everyone signs, and tags, and rebases their commits before making them..." Can these be enforced and/or automated? It looks like the "feature" is that these things just happen automatically in SVN, while requiring considerable additional manual effort in Git.

7

u/[deleted] Nov 16 '13

and yet seemingly no thought was given to making those features accessible to people who don't want to become devotees.

fixing this is the point of Ubuntu, hence the "Linux for human beings" tagline. my experience with it and mint have certainly been smoother than other distributions I could name,

also, the Ubuntu guys seem to have taken a stab at version control for human beings: http://bazaar.canonical.com/en/

I should warn you I've only used git and svn so can't vouch for that one.

→ More replies (5)

0

u/[deleted] Nov 17 '13

[deleted] — view deleted comment

2

u/Peaker Nov 17 '13

How does one "demolish" a repository in git? I've used git for years now and have never seen that happen.

1

u/donalmacc Nov 17 '13

demolish

git branch -d
vs

git branch -D

Which would you use to quickly delete a branch that you don't think you need anymore, because your defaults have push.default set to upstream, and you changed branches after committing before pushing?

→ More replies (9)
→ More replies (6)