Author Topic: Software files management  (Read 2021 times)

Offline Camox

  • PLUS+1 Developer
  • ***
  • Posts: 36
  • Karma: +2/-0
Software files management
« on: February 10, 2023, 10:33:14 AM »
Hello,
Allow me to ask you about the management of programming files, modification and version management.
Is it possible to use GitHub software to manage Plus+1 files?
Have you tried it?
Is there such a system for Plus+1 files?
Thanks in advance for your feedback.
Have a great day.

Offline Tor

  • Administrator
  • PLUS+1 Guru
  • *
  • Posts: 275
  • Karma: +26/-1
Re: Software files management
« Reply #1 on: February 10, 2023, 11:48:46 AM »
Hello,

I hope you will get some reply from people using GitHub, since I have only used TortoiseSVN. But I guess(?) it's similar.

The big issue with PLUS+1 files and version control is the .scs file.  As far as I know there is no way to merge two .scs files in SVN. Which is a problem if you are more than one developer on a project.
You can use the Project View in PLUS+1 GUIDE to see all necessary files in a project, so you don't version control all unnecessary temp files.  You'll find more information about the Project View in the PLUS+1 GUIDE user manual.


Have a nice day
Best regards,
Tor
PLUS+1® SW PAE Team

Offline PosFdbk~~~~~

  • PLUS+1 User
  • **
  • Posts: 9
  • Karma: +2/-0
Re: Software files management
« Reply #2 on: February 14, 2023, 05:14:54 PM »
I use GitHub and TortoiseGit.  It works as well as can be hoped...  I turn on LFS for nearly all of the PLUS+1 files since they are nearly all binaries.  I also set Tortoise to use the Danfoss compare scs as my diff tool.  The LFS works properly and transparently where it will get old versions for compares if they are not on your local computer.

You can of course merge files with PLUS+1, just as you can merge any binary file.  Any binary merge in Git is a bit ugly which is why for binary files there are locks in Git.  This is probably the best practice, however, it does limit how many developers can work on something at once.

Danfoss also has the "project view" which helps to know which of the many files need to be under version control and which are junk artifacts that can be ignored.

The problem with binaries is that you have to rely on the binary maker for diff and merge tools.  Danfoss does have a diff viewer, but it is a little buggy and not as reliable as one would hope for accurately finding diffs.  It also cannot tell the difference between "graphical" changes and functional changes.  For example, if you move something on a page that doesn't change the underlying code (say for formatting reasons), it will still highlight the change and you can't segregate between functional and non functional changes.

Danfoss does not offer a merge tool.  You have to do it yourself manually where you open instances of the diff tool, module viewer, and GUIDE and do the merge manually.  It isn't too bad because as you work, you can just re-launch the diff tool as you go to confirm the changes.

I also looked at PlasticSCM that is designed for more novice users as well as being focused on binaries, but it seems that for the price, Git + Tortoise is probably the way to go.  I'll also say, I find Github desktop pretty useless since it is so focused on being a merge tool that it is really a bit pointless for GUIDE and I find Tortoise more helpful.

Offline Camox

  • PLUS+1 Developer
  • ***
  • Posts: 36
  • Karma: +2/-0
Re: Software files management
« Reply #3 on: February 14, 2023, 05:19:45 PM »
Thanks for your response.
What configuration do you use?
Do you use a repository server?

Offline PosFdbk~~~~~

  • PLUS+1 User
  • **
  • Posts: 9
  • Karma: +2/-0
Re: Software files management
« Reply #4 on: February 14, 2023, 08:59:15 PM »
I use GitHub and host in the cloud, so yes to using a server.

It's a very low cost service.  Basically you just pay for LFS data packs and as long as your not versioning display *.lhx files, you won't spend much.

I use ToitoiseGit as a GUI client.  Its free and easy to use.

Offline Neil

  • PLUS+1 Expert
  • ****
  • Posts: 96
  • Karma: +2/-0
Re: Software files management
« Reply #5 on: February 28, 2023, 04:39:42 AM »
I'm in the Github corner, I have been using it for a couple of years now.
To selected what gets merged and what doesn't use the cherry pick function.