3 ms·
> it takes 10 seconds to run git status People coming from the SVN world do not think that this is unusual or problematic. And unfortunately even recently I've
by dotancohen 4y ago
> it takes 10 seconds to run git status
People coming from the SVN world do not think that this is unusual or problematic. And unfortunately even recently I've seen SVN still in use at large legacy companies.
- trasz 4y agoFrom my experience SVN isn’t significantly slower than git.
- dotancohen 4y agoMy experience is that anything dealing with a branch, especially but not exclusively creating branches, is very slow in SVN for a repo of any real size, basically anything with a framework. I do not remember if "stat" was particularly slow, but SVN in general is slow.
- trasz 4y agoYeah, branches are slow. Otoh blame is fast compared to git.
- capitainenemo 4y agoThese days mercurial has a cached blame/annotate called "fast annotate" which I love because of one particular awesome feature --deleted which must be seen to be appreciated I think. I have this alias in my .hgrc file fad=fastannotate -u -n -wbB --deleted It's by the Facebook engineer Jun Wu who also made the even more awesome "absorb"
- capitainenemo 4y agoHuh. 10 gigabyte svn repo at work spanning about 40 projects.. Creating branches is virtually instantaneous. It's just a copy which is a free operation (just a link). Curious as to why it would be slow for you. svn cp https:/ /server/svn/trunk/project/ https:/ /server/svn/branches/project/ticket -m "making a branch here" svn status, even for an entire repo checkout (which is not common) is also fast. And yeah, it has virtue of simplicity as well doing very well at narrow and shallow even though I'd love to have mercurial's feature set. It's also rather good in the "wiki" situation since people can operate on their single files without needing to update, sync and merge. https://www.bitquabit.com/post/unorthodocs-abandon-your-dvcs-and-return-to-sanity/ https://www.bitquabit.com/post/unorthodocs-abandon-your-dvcs... A fun rant, even though git has gotten better-ish at large files.
- dotancohen 4y ago> Creating branches is virtually instantaneous. It's just a copy which is a free operation (just a link). Copy is not a "free" operation, but a symlink is close to "free" if you're measuring disk space. What version SVN are you using? I'm certain that older SVN versions would actually copy the entire project's files, not symlinks but real copies. That would take forever and running out of disk space was a real concern.
- capitainenemo 4y agoAn svn copy is just a link. It has always been a "free" operation (and yes, the analogy would be to a symlink). I'm not aware of any version of svn that behaved the way you described and I've used it for a couple of decades. I can perhaps imagine a large repo plus a broken svn client requiring checking out unneeded portions of trees to do a copy, but no client I've used works like that. Hm. Another theory. Perhaps someone who knew nothing about svn and was using TortoiseSVN's Windows file manager integration was doing a Windows file manager copy, then checking that in as a "branch" with the only link being the commit message instead of using svn's copy which is free and properly links content. That would indeed be an expensive operation, and the wrong thing to do.
- ChrisRR 4y agoI don't think it's unfortunate. We use subversion for development in our team and it does everything we need it to. We looked into git and didn't find it offered any features that would significantly improve our process, but found 1000 more ways to shoot ourselves in the foot For many processes I think SVN is (and has been for many many years) been an absolutely fine method of version control
- dotancohen 4y ago> didn't find it offered any features that would significantly improve our process, but found 1000 more ways to shoot ourselves in the foot You're not wrong about this. I really like git for the cheap branching, which encourages branching and merging often. But SVN might have cheap branching now, as another commenter implies.
- mekster 4y agoWhat is wrong with SVN?