Looking for a version control system

Status
Not open for further replies.

Cookie.Monster

Ars Scholae Palatinae
666
My apologies if this is common knowledge or frequently covered ground.

Any tips on a on-premise DVCS for non-developer folk, with the vast majority (including servers) running Windows? A few notes if it helps:
  • Primarily a Windows shop. Any solution should be able to house a central repository on a Windows server and work well with PowerShell.
  • Systems team is becoming more and more dependent on a variety of scripts, configuration files, and other data that should be in a version control system. Presumably we will be moving towards infrastructure as code with Desired State Configuration.
  • Applications team (theoretically) uses TFS 2010, management is unlikely to provide our team CALs.
  • Prefer something free. If it helps, we are a non-profit.
Git and Mercurial seem like the best bets. A few of us have experience with Git, although from my perspective it doesn't seem like the best fit for a Windows environment, and I personally lean towards Mercurial.

There also seems to be a number of management layer type products that can simplify using these SCM-Manager for example.

Any tips or suggestions on solutions to look at? Your insight would be greatly appreciated!
 

Cookie.Monster

Ars Scholae Palatinae
666
It sounds that way.

But for a team of primarily Windows folk, who don't have much experience with version control, and with no massive projects (just one off files, a few PowerShell modules broken out into multiple files, and other 'small' solutions), Git seems like overkill.

Do I go with what will be relatively simple to learn and implement and thus will likely be used more, or with the 'winner' that seems difficult to implement and with complexity that might scare away these users?
 

tinyMan

Ars Tribunus Angusticlavius
6,149
Subscriptor++
In 2008, when we needed to select a DVCS for an all-windows platform, I went with Mercurial, due to the issues that git was having in the Windows world.

These days, it seems like git has cleaned up its act on Windows and mostly works as expected. Third party tooling has come a long way as well, with things like TortoiseGit to provide a semi-familiar interface to the version control system that didn't scare off greybeard developers.

Selecting a tool today, I would go with git, hands down.
 

Hattori HANZo

Ars Scholae Palatinae
1,205
Use git. If alone for the reason that practically any problem you may encounter in such a small shop has a solution easily reachable via google.
As a GUI, I'd second tortoiseGit.

Concerning overkill, it's like driving a $100k car. Just leave the knobs and buttons aside and there's no problem. And pretty much every other widely used version control system has a lot of things you probably wouldn't need, too.
Just teach them to keep to "pull, commit, push" if complexity is a concern. Heck, for my personal stuff that is almost anything I do with git.
 
Git won the war. Just use it.

:rolleyes:

I hate this attitude even though I use git when needed. What if people never questioned the status quo? We might be stuck with COBOL or dumb terminals or Windows or flip phones and no alternatives because There Can only be One. I do admit that today's DVCSs are superior to a lot of the crap we used in the past.

I also prefer Mercurial... :p
 

Hattori HANZo

Ars Scholae Palatinae
1,205
[url=http:/civis/viewtopic.php?p=25952019#p25952019:30tcz87d said:
xradionut555[/url]":30tcz87d]
Git won the war. Just use it.

:rolleyes:

I hate this attitude even though I use git when needed. What if people never questioned the status quo?
How did git "win the war"?
Subversion, Microsoft's stuff and a lot of other commercial products were there before git was. I think Mercurial predated git by a good margin, but I'm not sure off hand.
After the problems the kernel guys had with the stuff they used, some guy came up with git and named it after himself. Because he wasn't satisfied by any of the status quo options. Then a lot of people thought that this git thing must be cool. Granted, there is probably a portion that switched because "omg Torvalds" or "omg linux kernel", but the generally very positive and warmhearted response from developers, the end users of version control, is very likely based on the fact that git is better for most of them.

Git is now The Thing because people questioned and challenged the status quo.
Mercurial won't change that, because it is not better by enough of a margin to overcome the inertia problem that now everything supports git and most people are convinced git is good enough. (I'd argue it's not even better at all, but pretty close at least. If it would have had someone like Torvalds and something like the linux kernel as a testimonial...)
 

hanser

Ars Legatus Legionis
43,853
Subscriptor++
IMO, Mercurial has the same benefits (and a TortoiseHg client) as Git, but with friendlier syntax if you do use the CLI.

I happen to think Mercurial will win the long game... as soon as BitBucket's as fast as GitHub. (Which appears to be its only advantage.)

Honestly, if it had been created by anyone but Torvalds, Mercurial would have won long, long ago. But nerds like to jizz themselves over arcane technology. (IMO, natch.)
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
I happen to think Mercurial will win the long game... as soon as BitBucket's as fast as GitHub. (Which appears to be its only advantage.)

Really? what's the incentive to move? There seems to be precious little you can do in one but not the other, and the various differences in backing store matter only for projects of very serious size (interestingly AFAICT that would give mercurial a slight speed advantage in the Linux sort of scale) but that simply doesn't matter a jot to most people.

I see quite a lot of activity in 'value add' companies who used to target svn in the git space[1], but very little for mercurial

1. this might be selection bias - I've been banging on about getting some of the things that constrain us to svn to include git, and many either have it, or are moving towards it.
 

hanser

Ars Legatus Legionis
43,853
Subscriptor++
[url=http:/civis/viewtopic.php?p=25955323#p25955323:2ihbk31s said:
ShuggyCoUk[/url]":2ihbk31s]
I happen to think Mercurial will win the long game... as soon as BitBucket's as fast as GitHub. (Which appears to be its only advantage.)
Really? what's the incentive to move? There seems to be precious little you can do in one but not the other, and the various differences in backing store matter only for projects of very serious size (interestingly AFAICT that would give mercurial a slight speed advantage in the Linux sort of scale) but that simply doesn't matter a jot to most people.
I'm not sure if you're asking about Mercurial/Git or GitHub/Bitbucket.

If you're using Git already, there's little reason to switch to the other. If you're using svn, and your devs aren't already familiar with Git, I'd switch them to Mercurial, because I think it's an easier transition.

My basic assertion is this: more developers would prefer Mercurial to Git, if you could somehow test those preferences in a knowledge/culture vacuum.

I see quite a lot of activity in 'value add' companies who used to target svn in the git space[1], but very little for mercurial

1. this might be selection bias - I've been banging on about getting some of the things that constrain us to svn to include git, and many either have it, or are moving towards it.
I'm not a mind reader, and you appear to have posted half a thought. ;)

Anyway, git has a lot of mindshare. Pointy Haired Boss types have heard of it, so when an enterprise vendor comes along mentioning Git, it tickles their fancy, because PHBs often know that Git is "better than svn"--which it is--which is an automatic plus. If you present hg to a PHB, you're going to get a blank stare. If Mercurial will ever see market penetration, it will be in orgs that haven't calcified to the point where PHBs are a thing.

I tolerate Git, as it's way better than svn, but given a choice, I prefer Mercurial.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
I tolerate Git, as it's way better than svn, but given a choice, I prefer Mercurial.

I'm not arguing that, I haven't used both enough to form a coherent basis for discrimination either way, I'm just curious as to what you basis the long game on. SVN was demonstrably worse than many of the available options at the time (2000), but did have the whole 'free' thing going for it compared to almost everything else. So clearly free[1] is a compelling argument over all else for widespread adoption.

As such I'm intrigued as to what makes you think mindshare will grow in Hg over git.

I'm not a mind reader, and you appear to have posted half a thought. ;)
Sorry, I meant to say that I have observed quite a few different tools/services/vendors who supported svn either adding git to their repertoire, or making it part of their road map. I have not seen anything like the same for mercurial. I might have some selection bias there though, since we're (as a team) pushing to get more git[2], and need those things to happen before we can outside of local sharing or git-svn.

1. Gratis or Libre, or both, but certainly free wins there be cause until BitKeeper started making rumblings about taking their ball away from the Linux guys there was essentially no traction in the free space for DVCS.
2. Pushed by other people, I'm happy to go along for the ride.
 

hanser

Ars Legatus Legionis
43,853
Subscriptor++
[url=http:/civis/viewtopic.php?p=25955687#p25955687:2v3a94ki said:
ShuggyCoUk[/url]":2v3a94ki]I'm not arguing that, I haven't used both enough to form a coherent basis for discrimination either way, I'm just curious as to what you basis the long game on.
Hope, mostly. :) And maybe a side order of the phenomenon where small organizations tend to move faster and be more innovative. They either grow up to become big organizations, or they get acquired by big organizations. In the latter case, the bigger company usually ends up supporting the new thing. Which is how Mercurial could worm its way into a larger company that might otherwise be an svn or git shop.

As such I'm intrigued as to what makes you think mindshare will grow in Hg over git.
IMO, it's a friendlier technology without a ton of mindshare. It has enough support that it will continue to mature--as opposed to dying out (BeOS), or staying on the fringes (Darcs)--and if that's true, Git users could start to migrate to it when they get tired of pointing newbies to 300 page books (Pro Git) instead of something conceptually simpler like hginit.

I think it's easier and faster for an svn user to be productive with Mercurial than with Git. An untested assertion for sure, but there's real value in being able to be productive more quickly with a new technology. Particularly when there're no significant drawbacks to the friendlier technology relative to the more arcane system.

Sorry, I meant to say that I have observed quite a few different tools/services/vendors who supported svn either adding git to their repertoire, or making it part of their road map. I have not seen anything like the same for mercurial. I might have some selection bias there though, since we're (as a team) pushing to get more git[2], and need those things to happen before we can outside of local sharing or git-svn.
Yeah, I think that's a mindshare thing. If people start asking for Mercurial, it will come.
 

bk0

Ars Tribunus Militum
1,801
git vs Mercurial is the DVCS version of vi vs emacs, Linux vs BSD, etc. The both have essentially the same functionality and a typical team would do fine with either. git currently has somewhat higher mindshare so it gets some advantages in terms of Googleability, 3rd party tools, etc. Mercurial, since it's written in Python, is a little easier on Windows. git seems subjectively to me a bit faster. I like git's binary delta support, but don't know offhand if Mercurial has the same support.
 

hanser

Ars Legatus Legionis
43,853
Subscriptor++
[url=http:/civis/viewtopic.php?p=25955877#p25955877:cyfp5mv5 said:
bk0[/url]":cyfp5mv5]git vs Mercurial is the DVCS version of vi vs emacs, Linux vs BSD, etc. The both have essentially the same functionality and a typical team would do fine with either. git currently has somewhat higher mindshare so it gets some advantages in terms of Googleability, 3rd party tools, etc. Mercurial, since it's written in Python, is a little easier on Windows. git seems subjectively to me a bit faster. I like git's binary delta support, but don't know offhand if Mercurial has the same support.
You're probably right. I think GitHub really helped Git's mindshare, tbh. GitHub is a pretty well-designed, flexible tool. As is BitBucket, but GitHub consistently beats the pants off BB in terms of performance, particularly on operations that require large amounts of data to be transferred.
 

CanSpice

Ars Tribunus Angusticlavius
7,147
Emacs uses bzr for source control. Today Eric Raymond posted this to the emacs-devel list, which includes:

git won the mindshare war. I regret this - I would have preferred Mercurial, but it too is not looking real healthy these days. I have made my peace with git's victory and switched. I urge the Emacs project to do likewise.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
[url=http:/civis/viewtopic.php?p=25959151#p25959151:1hhtygj1 said:
Solomonoff's Secret[/url]":1hhtygj1]Meh, I just change the code on the production server. It's easy enough to remember what I did so I can roll back.

You have a production server? I just run everything from my desktop, no need to wait for pesky deployments. I just have to remember to hit F5 in visual studio after I reboot!
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
[url=http:/civis/viewtopic.php?p=25961435#p25961435:3vo3ptbk said:
upstateal[/url]":3vo3ptbk]Can someone explain to a person who hasn't been following the DVCS holy wars lately why ESR said that Mercurial "is not looking real healthy these days"?

It's old(2011), and the developers that eclipse would sample from may well have systemic biases but articles like this probavly don't help:

It's true that Git adoption has increased sixfold in three years, but Eclipse's 2011 survey of 704 developers still has Subversion as the source code management system of choice, with 51.3 percent of respondents using it. CVS, also a centralised system, comes in second at 13.3 percent. Git follows with 12.8 percent, while Mercurial was used by 4.6 percent.

It's scary how many were still on CVS!, but 3 times bigger is pretty significant. the eclipse survey, and some scraping of open source hosting collections gives you this:
Here's some decent analysis from StackExchange

Edit: you could argue the 'trend' is good on the eclipse community survey, in that Hg is getting better in comparison, but I'd treat that as being an also ran with those absolute numbers. It's unlikely to hit the bzr levels of irrelevance in a long time, but also not sufficiently big to cause the sort of inertia you see from the swathes of CVS/svn that still persists and means people bother to learn them by way of solving a specific need.
 

technophile

Ars Legatus Legionis
23,768
Yeah, we're still on CVS, something I complain to my boss about pretty much every week, but he and the other dev are pretty conservative guys. I think we're moving to git... eventually. (Note to self; bring this up again on Monday. :p)

I cannot stand CVS's completely inexcusable-in-2007-let-alone-2014 "merge" nonsense. Putting >>>>> in my code and requiring me to manually open the file and correct it is unacceptable.
 

Alamout

Ars Legatus Legionis
27,285
[url=http:/civis/viewtopic.php?p=25955033#p25955033:wnftyb7j said:
hanser[/url]":wnftyb7j]I happen to think Mercurial will win the long game... as soon as BitBucket's as fast as GitHub. (Which appears to be its only advantage.)
I dunno about that. "Slightly better" isn't the same as "winner in the long run" (assuming for the sake of argument that Hg is slightly better, and remains that way). Git has won for now, and that entrenched position is a very powerful thing.

I use Mercurial because Git's historical issues with Windows got me started that way, but I'd like to know Git better because it's used by a lot of projects.
 
D

Deleted member 43669

Guest
[url=http:/civis/viewtopic.php?p=25969867#p25969867:qoklslyi said:
technophile[/url]":qoklslyi]
I cannot stand CVS's completely inexcusable-in-2007-let-alone-2014 "merge" nonsense. Putting >>>>> in my code and requiring me to manually open the file and correct it is unacceptable.

Well, git is good at merging, but it does sometime put conflict markers in, you know...
 

technophile

Ars Legatus Legionis
23,768
[url=http:/civis/viewtopic.php?p=25970493#p25970493:2gxaukvp said:
koala[/url]":2gxaukvp]
[url=http:/civis/viewtopic.php?p=25969867#p25969867:2gxaukvp said:
technophile[/url]":2gxaukvp]
I cannot stand CVS's completely inexcusable-in-2007-let-alone-2014 "merge" nonsense. Putting >>>>> in my code and requiring me to manually open the file and correct it is unacceptable.

Well, git is good at merging, but it does sometime put conflict markers in, you know...
Do the various VS plugins not do visual merging? Or at least open the file and go to the first conflict or something slightly useful? Having to scroll through the update log and manually scan for the word "conflict" is amazingly stupid.
 

technophile

Ars Legatus Legionis
23,768
[url=http:/civis/viewtopic.php?p=25970943#p25970943:dfa9hbqt said:
ShuggyCoUk[/url]":dfa9hbqt]VS plugin model for source control providers does support external merge tools (CVSNT and SVN both did). I use Beyond Compare 3, which on SVN supports 3 way merge (and it's merge algorithm often does it without any further effort than hitting save)
Yeah, with SVN I had it set up to use SourceGear's DiffMerge, which works well, but I haven't figured out a way to get CVS to do it. I'm using WinCVS, though, not a VS plugin at this point.
 
Status
Not open for further replies.