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

Show parent comment

7

u/argv_minus_one Nov 16 '13

It is not. There is basically nothing Git can do that Mercurial (with the right extension) cannot.

9

u/Halfawake Nov 16 '13

adding extensions increases the complexity though.

12

u/argv_minus_one Nov 16 '13

No amount of Mercurial extensions will ever equal the grotesqueness of Git's Frankencommands. There is no Mercurial extension that adds anything as atrocious as git checkout, and if there were one, I would advise you not to use it.

1

u/rustyrobocop Nov 17 '13

I, thinking I was in git, tried a hg checkout and let me tell you, I don't know what happened, but the sky fell

2

u/argv_minus_one Nov 17 '13

hg checkout does exactly one thing: switches your working tree to reflect the specified committed tree.

What were you expecting it to do?

1

u/rustyrobocop Nov 17 '13

I'm not sure but I had some problems with the internet connection and it changed to a branch I hadn't downloaded yet, but well apparently it had been downloaded even tough I couldn't see the commit. I hate the third world internet.

-1

u/[deleted] Nov 16 '13

99% of the usefull Mercurial extensions are shipped with Mercurial itself, it's just a matter of turning them on in a config file once and you are done.

[extensions]
rebase =

So complex...

4

u/acdha Nov 17 '13

The difference is that non-core Mercurial features are treated as experiments. I've never lost data using Git rebase but did so several times with Hg before realizing that patch queues were an untrustable.

(n.b. I started using Hg first and initially bought into it being easier but realized that Git just worked far more frequently)

1

u/argv_minus_one Nov 17 '13

I've never used Mercurial Queues, so I can't comment on that. Seems mostly unnecessary to me, but whatever.

Mercurial has a rebase extension that has nothing to do with MQ. I have only used it once, but it worked perfectly.

It also saved a backup bundle of all the changesets it deleted/altered, in case of clusterfuck. There is no reason to have lost data when you have a backup.

1

u/acdha Nov 17 '13

The rebase extension is newer and wasn't available when I needed it. Hopefully it's well-tested as a first-class feature now – at the time, most of the developers were too busy saying “You don't really want that”.