Author Topic: Git or Mercurial for Embedded Development  (Read 12192 times)

0 Members and 1 Guest are viewing this topic.

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Git or Mercurial for Embedded Development
« Reply #25 on: December 14, 2015, 07:30:31 am »
About a year ago Perforce offered free 20 seats so that's what I'm using.

Seems they have extended that to their new Perforce Helix, but I have not tried it.

https://www.perforce.com/downloads/helix

Don't know what extra features Helix has, I know their older Perforce integrates well with Visual Studio, even with the Free Community edition.
 

Offline ivaylo

  • Frequent Contributor
  • **
  • Posts: 661
  • Country: us
Re: Git or Mercurial for Embedded Development
« Reply #26 on: December 14, 2015, 07:56:18 am »
For a single developer who isn't sharing code this discussion is pointless. Git vs. svn vs. hg vs. cvs for a single guy, really?
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Git or Mercurial for Embedded Development
« Reply #27 on: December 14, 2015, 08:28:20 am »
For a single developer who isn't sharing code this discussion is pointless. Git vs. svn vs. hg vs. cvs for a single guy, really?

Not pointless. Even for one user being able to revert a changelist is a good thing. Or even branch from an old version to try new things.
Also, and of course this doesn't happen to me, code review some revision when I had too much wine. I do swear, I never commit in that state  :-X

Why distributed? one machine can bite the bucket so you are not out of the full repository. Especially since we tend to plug projects into the USB port (haven't fried one... yet).

 

Offline con-f-use

  • Supporter
  • ****
  • Posts: 807
  • Country: at
Re: Git or Mercurial for Embedded Development
« Reply #28 on: December 14, 2015, 08:40:11 am »
The most annoying cons of Git listed in a humorous way.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26896
  • Country: nl
    • NCT Developments
Re: Git or Mercurial for Embedded Development
« Reply #29 on: December 14, 2015, 09:01:38 am »
For a single developer who isn't sharing code this discussion is pointless. Git vs. svn vs. hg vs. cvs for a single guy, really?
I'm usually in such a situation. It is very benificial because a version control system allows to keep old versions. When writing software nothing is more important than being able to support older (mature) versions of software. It is also handy to distribute code over more than one machine. For example: sometimes I use my laptop and change some code on-site. Back in the office I commit these changes into SVN and check them out on my primary PC.

I once worked at a company where a programmer for a large software product didn't keep the source of software which was installed in the field. So everytime a customer complained about a bug he couldn't provide a quick fix. In his view the customers had to wait for the new stable release with new (and buggy) features. The customers wheren't happy and it did cost the company a lot of money. It took the rest of us an tremendous amount of effort to get him to use a version control system and even then he managed to delete sourcecode for a version which was 'in the field'. If it wasn't such a friendly guy I'd almost start to think he was sabotaging the company on purpose.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline rich

  • Frequent Contributor
  • **
  • Posts: 250
  • Country: gb
Re: Git or Mercurial for Embedded Development
« Reply #30 on: December 14, 2015, 04:19:33 pm »
I agree. Over analysing the smaller differences between git, hg etc might be pointless for a solo developer but using a version control system still has many advantages over not using one. In this case the OP already uses CVS and wants to move to a Mercurial or Git.

Why distributed? one machine can bite the bucket so you are not out of the full repository. Especially since we tend to plug projects into the USB port (haven't fried one... yet).

I'd say that is one advantage of DVCS. Continuing to work unhindered without network access is high up my list of advantages when travelling, or on a local subset of machines at alternate locations. For most of my solo work I push to Github to give me an internet accessible offsite backup, so I sort of treat it more like a centralised system in that respect.
 

Offline milkop

  • Newbie
  • Posts: 3
Re: Git or Mercurial for Embedded Development
« Reply #31 on: December 15, 2015, 05:41:49 am »
I use Git at work and it's very powerful and encourages branching by making switching back and forth really quick. If you're comfortable on a command line or have a decent gui or ide integration, it's not too hard to learn, though I still have to look up commands and resolutions as it can be enigmatic. The documentation is good though and, given its origins, it's probably not going anywhere soon. You're smart to be using source control even as a solo developer because disk space is cheap and the undo buffer is finite.
 

Offline ivaylo

  • Frequent Contributor
  • **
  • Posts: 661
  • Country: us
Re: Git or Mercurial for Embedded Development
« Reply #32 on: December 15, 2015, 09:40:57 am »
For a single developer who isn't sharing code this discussion is pointless. Git vs. svn vs. hg vs. cvs for a single guy, really?
I'm usually in such a situation. It is very benificial because a version control system allows to keep old versions. When writing software nothing is more important than being able to support older (mature) versions of software. It is also handy to distribute code over more than machine...
Absolutely. You do need A version control system, but if you are alone it doesn't really matter which one you pick. For one guy all mentioned are kinda the same. You want distributed? Just share a drive...
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Git or Mercurial for Embedded Development
« Reply #33 on: December 15, 2015, 10:12:05 am »
The most annoying cons of Git listed in a humorous way.
^ That's consistent with my experience of Git.
BTW I use svn, works fine with the Tortoise wrapper, though I would/should one day change to git and learn the ways but until there is a need... I can't be bothered.
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Git or Mercurial for Embedded Development
« Reply #34 on: December 15, 2015, 10:51:21 am »
It took the rest of us an tremendous amount of effort to get him to use a version control system and even then he managed to delete sourcecode for a version which was 'in the field'.
That's very hard to do with git. You'd have to purposely remove blobs on the remote repository. And when you're poking on the remote you know you need to create a backup.

A major drawback of all of the above named version control systems is that they hide themselves in the local repository.
Meaning that anyone not familiar with it, or with disabled hidden folders, does not notice the .svn, .git or .hg and might even remove accidentally. As do some automated cleanup stuff or sync tools. Highly annoying.
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: Git or Mercurial for Embedded Development
« Reply #35 on: December 15, 2015, 03:05:15 pm »
About a year ago Perforce offered free 20 seats so that's what I'm using.

Seems they have extended that to their new Perforce Helix, but I have not tried it.

https://www.perforce.com/downloads/helix


Perforce is the most intuitive and easy to use version control system I ever used. I am not sure though if it has a hosted service or works offline as git does.
 

Offline Dielectric

  • Regular Contributor
  • *
  • Posts: 127
  • Country: 00
Re: Git or Mercurial for Embedded Development
« Reply #36 on: December 15, 2015, 05:47:17 pm »
The most annoying cons of Git listed in a humorous way.

...and that's why I installed SourceTree.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: Git or Mercurial for Embedded Development
« Reply #37 on: December 15, 2015, 06:32:31 pm »
The most annoying cons of Git listed in a humorous way.

...and that's why I installed SourceTree.

Is it better than Gitk?

 

Offline Dielectric

  • Regular Contributor
  • *
  • Posts: 127
  • Country: 00
Re: Git or Mercurial for Embedded Development
« Reply #38 on: December 15, 2015, 08:37:44 pm »

...and that's why I installed SourceTree.

Is it better than Gitk?

Different, I haven't used gitk but it looks like a commandline wrapper, right?  SourceTree is a visual interface to git; I do about 99% of my development under Windows because of the rest of my toolchain, so it fits into that paradigm pretty well.  You still need to know what Git does and how, but my brain is full and I don't feel like learning more command line syntax so clicky-draggy is nice.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf