This is the *second* useful hint I've had from you. The first one was the link to the milk liqueur recipe you posted on the use-livecode mailing list....jacque wrote:If you set the destroystack property of the stack to true it won't stay in memory when you close it. Then you won't have to remember to do anything special.
There's a preference that automatically creates all new stacks with destroystack true. I always use it.
Version Control
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 37
- Joined: Thu Apr 19, 2012 8:12 am
Re: Version Control
Thank you very much for this hint - this is the kind of thing that is useful for us, newbies:
Re: Version Control
LOL! It seems there will be a whole lot of drunken LiveCode coders now.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 9787
- Joined: Fri Feb 19, 2010 10:17 am
Re: Version Control
Goofy types like me do a version control routine like this:
I do a 'Save As' each time into a directory with a name that includes the date; e.g.
17MAY2013
17MAY2013_2
18MAY2013
18MAY2013_2
18MAY2013_3
19MAY2013
It isn't rocket science, but it works for me.
I do a 'Save As' each time into a directory with a name that includes the date; e.g.
17MAY2013
17MAY2013_2
18MAY2013
18MAY2013_2
18MAY2013_3
19MAY2013
It isn't rocket science, but it works for me.
Re: Version Control
Great posts, I am enjoying them. I have the same problems.
There is a script that you can maybe use the code to write your own code to find differences, or at least use to output all your scripts and then use an external text compare to find all the differences. It is called Script Reporter and is open source at http://www.createchsol.com/ScriptReporter/
cheers
There is a script that you can maybe use the code to write your own code to find differences, or at least use to output all your scripts and then use an external text compare to find all the differences. It is called Script Reporter and is open source at http://www.createchsol.com/ScriptReporter/
You might also find some samples of code and sources by looking at the posts at http://forums.runrev.com/viewtopic.php? ... pts#p61603 and http://forums.runrev.com/viewtopic.php? ... ipts#p7897Script Reporter is an open source project that you are welcome to download and update/revise.
It is an application that will gather all of the scripts in a project and let you view them while in another project.
Simple application that may be useful to others.
cheers
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
Re: Version Control
Just thought that for completeness' sake I'd mention Monte Goulding's excellent lcVCS here, in case anyone comes to this thread looking for tools that may enable them to work better with LiveCode and modern vcs tools like git:Newbie4 wrote:There is a script that you can maybe use the code to write your own code to find differences, or at least use to output all your scripts and then use an external text compare to find all the differences. It is called Script Reporter and is open source at http://www.createchsol.com/ScriptReporter/
https://github.com/montegoulding/lcVCS
Re: Version Control
Version 1.2 of ScriptReporter is here: http://livecodeshare.runrev.com/stack/5 ... eporter-LC
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Version Control
It looks like it has been another few years since this topic has been addressed. I am looking for a simple script comparison between two versions of the same stack.
I am coming into a bit of a mess. There are several different versions of a stack. I want to know what scripts are different. That's all.
What is the simplest, easiest way to compare scripts between different versions of the same stack?
I am coming into a bit of a mess. There are several different versions of a stack. I want to know what scripts are different. That's all.
What is the simplest, easiest way to compare scripts between different versions of the same stack?
-
- Livecode Opensource Backer
- Posts: 9787
- Joined: Fri Feb 19, 2010 10:17 am
Re: Version Control
Well, that depends on which operating system you're developing on.
On Macintosh you can use TextWrangler to open your 2 stacks and run a text comparison:
http://www.barebones.com/products/textwrangler/
On RiscOS you can use StrongED to do the same thing:
https://www.riscosblog.co.uk/?p=2141
Pe on HaikuOS . . . more apps than you can shake your fist at on Linux.
Oh, and for the CTOS:
https://alternativeto.net/software/text ... rm=windows
On Macintosh you can use TextWrangler to open your 2 stacks and run a text comparison:
http://www.barebones.com/products/textwrangler/
On RiscOS you can use StrongED to do the same thing:
https://www.riscosblog.co.uk/?p=2141
Pe on HaikuOS . . . more apps than you can shake your fist at on Linux.
Oh, and for the CTOS:
https://alternativeto.net/software/text ... rm=windows
Re: Version Control
Brian Milby wrote a stack that's compatible with git and shows diffs between stacks:
viewtopic.php?f=77&t=31079
viewtopic.php?f=77&t=31079
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Version Control
Script Tracker will generate a composite diff of two versions of a stack file pretty easily. Here's an outline of the process:
If you have a tool like DeltaWalker, you can do 3 way folder diffs. The process would be slightly different since you would want to get 3 separate exports (use steps 2-5 on each version).
- Download and open ScriptTracker (see link in signature or use RevOnline)
- Create a folder for the stack
- Add a copy of the first version of the stack and open
- Select the stack in ScriptTracker and do a sync to export the stack scripts
- Close the stack and remove from memory
- Replace the stack file with the next version
- Open the stack and perform another sync (select "Stack" for conflicts)
If you have a tool like DeltaWalker, you can do 3 way folder diffs. The process would be slightly different since you would want to get 3 separate exports (use steps 2-5 on each version).
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Version Control
Another hidden gem!!jacque wrote: ↑Wed May 09, 2012 7:25 amIf you set the destroystack property of the stack to true it won't stay in memory when you close it. Then you won't have to remember to do anything special.
There's a preference that automatically creates all new stacks with destroystack true. I always use it.
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS