Author Topic: pcb revision control software  (Read 3891 times)

0 Members and 1 Guest are viewing this topic.

Offline GalaxyriseTopic starter

  • Frequent Contributor
  • **
  • Posts: 531
  • Country: us
pcb revision control software
« on: April 09, 2016, 07:17:09 pm »
Before I start my next pcb, I'd like to use a better process than just copying the project and appending a number when I make a change to it. 

I'm looking for the facilities I'm familiar with in source code revision control:
  • history of changes to a file with comments describing the reasoning behind the change
  • ability to rewind my project to a point in time
  • ability to compare two revisions of a file to see what changed.  For schematics and pcb layouts, I'm expecting some kind of image diff. 

I did some google searching, and most of what I could find was from 2011, and seemed promising.  Presumably the tools have been made more widely available and easier to set up by now, but I didn't find such a thing.

I have experience with git and perforce, but am open to any RCS.  I currently use DipTrace for my schematics and pcbs, but this is a good time for me to switch if that will make project management easier.

Are there any RCS workflows ready to go for schematics and PCBs that are suitable for hobbyist use?  Any recommendations?
I am but an egg
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: pcb revision control software
« Reply #1 on: April 10, 2016, 10:52:41 am »
The problem is that visual diff thing, all the PCB packages use different file formats, so this really has to be done as part of the PCB tool itself, and while some of the multi kilobuck tools have this (Often using SVN as a backend), I have not seen it on any of the cheap tools.

Regards, Dan.
 

Offline DimitriP

  • Super Contributor
  • ***
  • Posts: 1377
  • Country: us
  • "Best practices" are best not practiced.© Dimitri
Re: pcb revision control software
« Reply #2 on: April 10, 2016, 12:09:51 pm »
A couple of thoughts:
If I really wanted to compare two PCBs I'd throw each onto their own layer in GIMP or Photoshop and then fiddle with the opacity to spot the differences.
With schematics and board designs you are not looking at the difference in the same substractive way as with code.

a =1 vs a=3 makes sense on it's own, but a line here and a line there or the added R9 on and empty screen (the difference) without the rest of the picture doesn't mean that much uness you are looking at the whole thing to see where R9 goes and what it does.


   If three 100  Ohm resistors are connected in parallel, and in series with a 200 Ohm resistor, how many resistors do you have? 
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: pcb revision control software
« Reply #3 on: April 10, 2016, 12:49:48 pm »
I keep coming back to SVN. Doesn't do everything you want, but it is solid, and I find if it is set up well, other people really get to like it.

We use TortoiseSVN (if you are using Windows) because it really makes SVN easy. I keep looking for anything close to TortoiseSVN on other platforms.

With SVN, you can easily put the whole design project under SVN, but you can easily check out just the part of the project you want - such as the PCB design folders.  I have the SVN respositories on a WebDAV web server, so anyone on the VPN network can browse all the projects and files with a web browser. If someone just wants the latest Gerbers for example, they can just get them straight from a browser. You can also capture an address of a folder you need to access, and paste it into Tortoise SVN to export it or check it out. We don't have any project folder on the servers at all.

Every time you commit files, you are asked for comments, and if the whole design project is in the same SVN, it is easy going back to any point of time and getting all the latest files at that instant. Every user has their own SVN login, so it is easy to identify who makes the change.

The way SVN repositories work make them very easy to back up, and SVN does a great job at minimizing storage needs. I have used it when there are hundreds of repositories with tens of thousands of files in each repository  - some in the gigabyte size - and I have never had any significant problems. Eliminating all the zip copies of a project is a huge help.
 

Offline MrSlack

  • Frequent Contributor
  • **
  • Posts: 880
  • Country: gb
Re: pcb revision control software
« Reply #4 on: April 10, 2016, 12:52:54 pm »
+1 for TortoiseSVN and Subversion. I've run a subversion server that has over 100,000 revs and is 39Gb in size and it just keeps hammering on quite happily.

Compared to git which I'm sure will be mentioned, it's actually easy to use and you can lock files which is essential for working on binary files.
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: pcb revision control software
« Reply #5 on: April 10, 2016, 12:56:14 pm »
Yes - ignore Git. It is great for programming, but for general projects, SVN is better. Git relies on being able to merge, and you cannot merge PCBs and Schematics.
 

Offline MrSlack

  • Frequent Contributor
  • **
  • Posts: 880
  • Country: gb
Re: pcb revision control software
« Reply #6 on: April 10, 2016, 01:10:40 pm »
It's bloody awful for code as well IMHO. Nothing but trouble with it since day one.
 

Offline alanb

  • Frequent Contributor
  • **
  • Posts: 344
  • Country: gb
Re: pcb revision control software
« Reply #7 on: April 10, 2016, 03:41:03 pm »
+1 For TortoiseSVN and Subversion. In addition BeyondCompare from http://www.scootersoftware.com is a great tool for showing the differences between different versions. Unfortunately there will not be a custom viewer in BeyondCompare to show the differences as an image. BeyondCompare can be used as a plug in for Tortoise.
 

Offline Iwanushka

  • Frequent Contributor
  • **
  • Posts: 260
  • Country: lt
Re: pcb revision control software
« Reply #8 on: April 10, 2016, 05:04:08 pm »
Perforce is nice solution and its free for home use, but make sure your cad tools support it
When all you've got is a hammer, everything starts looking like a nail.- Attrition.
 

Offline Fred27

  • Supporter
  • ****
  • Posts: 727
  • Country: gb
    • Fred's blog
Re: pcb revision control software
« Reply #9 on: April 10, 2016, 05:08:05 pm »
Any source control system will do the job if it's just to mark revisions rather than any complicated collaboration.

I agree Git is more complicated than most, with features better suited to open source projects. However, if the OP has Git experience then it will do just fine. There is also TortoiseGit for those coming from a SVN background who like TortoiseSVN.
 

Offline MrSlack

  • Frequent Contributor
  • **
  • Posts: 880
  • Country: gb
Re: pcb revision control software
« Reply #10 on: April 10, 2016, 06:01:30 pm »
Git really won't do for this. It has terribly bad binary support, no locking and the tooling is horrible. It's not even good for code (having spent most of last week untangling a massive pull request it assumed it could merge cleanly). I really wish people would stop crowing about it. It's fearsome if you have some software responsible for about £170bn of assets being managed dependent on it. My pants are nearly shit once a day without failure.
 

Offline Fred27

  • Supporter
  • ****
  • Posts: 727
  • Country: gb
    • Fred's blog
Re: pcb revision control software
« Reply #11 on: April 10, 2016, 06:10:52 pm »
I'm glad to say that source control by locking files died with Source Safe many years ago.

Not all PCB design involves binary files (e.g. the reasonably common Eagle is XML) and it sounds like the OP won't be doing merges anyway.

I agree Git has a bit of a learning curve before you see the benefits over something simpler, but just because you don't get it yet doesn't mean it's bad. A massive merge headache is far more likely to be down to your processes and I'm sure would be as bad with any source control.

I wouldn't recommend Git to a novice, but the OP says he had experience with it, and some people implied it couldn't do the job. It definitely can. I use it both for hobby code and PCB design and professionally for code at work. We switched from SVN about 18 months ago. It did take a few months to see the benefits but now I definitely wouldn't go back.
« Last Edit: April 10, 2016, 06:13:12 pm by Fred27 »
 

Offline MrSlack

  • Frequent Contributor
  • **
  • Posts: 880
  • Country: gb
Re: pcb revision control software
« Reply #12 on: April 10, 2016, 07:09:24 pm »
Source Safe was a turd yes but locking isn't dead.

Have you tried merging a complicated XML document? I've actually written commercial tooling to merge XML whilst maintaining XSD compliance and it's not a language you can merge using diff algorithms reliably.

Refactoring is where these things falls over. You need some intelligence behind merging. We shouldn't be merging text in 2016, we should be merging the parse trees of the files.

But I digress as that's the day job and I'm not going into dragon book territory today.
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: pcb revision control software
« Reply #13 on: April 10, 2016, 07:58:41 pm »
I still have a copy of that somewhere.

Actually, merging parse trees is an interesting idea, but I can think of some ways it would fall down really badly, and you would still need to be able to map back from the resulting combined parse tree to lines of text in the source files as we do not in general edit parse trees directly.....

Regards, Dan
 

Offline MrSlack

  • Frequent Contributor
  • **
  • Posts: 880
  • Country: gb
Re: pcb revision control software
« Reply #14 on: April 10, 2016, 08:19:15 pm »
Humans don't. Yet. TouchDevelop has the right idea. You manipulate the AST directly via a touch based UI that happens to render as text. Meet the machine half way.
 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: pcb revision control software
« Reply #15 on: April 10, 2016, 08:56:37 pm »

Go git or go home, SVN makes folders in every dam folder and makes a copy of each file as history.  :--
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: pcb revision control software
« Reply #16 on: April 10, 2016, 09:55:50 pm »

Go git or go home, SVN makes folders in every dam folder and makes a copy of each file as history.  :--
It used to. Now it is a single folder in the top directory.

Git is almost unusable for a general purpose repository into copies of repositories all over the place. It lets anybody commit anything, and you are meant to tidy the mess up with a merge. Trouble is that the merge fails for almost everything but program source files. Anyway,  most people just don't understand how it works. Git is extremely non-intuitive. Because SVN is a single central repository, it is simpler and it work for all types of files.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf