Version control – which system?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 508
Joined: Sun Dec 18, 2011 7:23 pm
Location: London
Contact:

Version control – which system?

Post by kaveh1000 » Mon Sep 30, 2019 9:55 am

I have a stack where almost all the code is in the script of the main stack. I am looking for some kind of version control. To keep things simple, I am happy to have it just for that script (some 6000 lines) to be on a version control system. So what are my choices? I have tried to use Levure in the past but wonder if that is overcomplicating, considering I just need one script to keep track of.
Kaveh

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Version control – which system?

Post by Mikey » Mon Sep 30, 2019 2:17 pm

You can export that script as a behavior, and then use any VCS that you like.
This is only applicable at newer versions of v. 9, and earlier versions of 9 have some issues with this.
The totally manual way is
bring up the properties pane for the stack
choose the advanced tab
tap the behavior button (looks like a bullseye)
choose "create behavior from script only stack"
choose "create stack using existing control script"

Less manual:
Find "scriptifier" in the LC bundle. That's a little stack Monte wrote to convert all the scripts in a stack to behaviors.

Less manual:
Use Navigator to convert your scripts to behaviors
Last edited by Mikey on Mon Sep 30, 2019 4:31 pm, edited 1 time in total.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9834
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Version control – which system?

Post by FourthWorld » Mon Sep 30, 2019 3:55 pm

How many people are on your team, and which VCS do they have the most familiarity with?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 508
Joined: Sun Dec 18, 2011 7:23 pm
Location: London
Contact:

Re: Version control – which system?

Post by kaveh1000 » Mon Sep 30, 2019 4:25 pm

Thanks Mike for the info. Richard, just two people, mainly myself, but another to put in comments mostly.

I am not very familiar with any but have used bitbucket. Colleague used Github and also set up Levure once.
Kaveh

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9834
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Version control – which system?

Post by FourthWorld » Mon Sep 30, 2019 4:39 pm

GitHub is pretty popular, though free accounts are limited to open source, if memory serves. Got (the underlying engine of GitHub) is open source and can be installed on nearly any server, but without the conveniences of GitHub.

If it's comments, maybe those become technical documentation and could be managed via Google Docs maybe?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Version control – which system?

Post by Mikey » Mon Sep 30, 2019 5:03 pm

github now allows private repos as well on free accounts.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9834
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Version control – which system?

Post by FourthWorld » Mon Sep 30, 2019 5:11 pm

Mikey wrote:
Mon Sep 30, 2019 5:03 pm
github now allows private repos as well on free accounts.
Thanks, Mikey. That could be useful on some things I have coming up. I'll go look into what restrictions may apply....
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bwmilby
Posts: 439
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: Version control – which system?

Post by bwmilby » Thu Oct 03, 2019 1:01 am

ScriptTracker is an option that I created. Ideal for a single developer that wants to keep track of changes to scripts in a binary stack without converting everything to behaviors.
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

Post Reply

Return to “Talking LiveCode”