10-20-2011, 05:24 PM
Does QuickMacros have any options for source control, revision control, or versioning of source code?
Source Control
|
10-20-2011, 05:24 PM
Does QuickMacros have any options for source control, revision control, or versioning of source code?
10-21-2011, 05:36 AM
No.
01-22-2013, 10:24 PM
Hi -
I'm looking at using git for source control for qml files. I know that qml files are binary and not text - so merge is something I don't want to attempt. But it would be useful to support diff and from this git documentation http://git-scm.com/book/ch7-2.html I was wondering if there was a way to set up an external program to create the diff. For this I'd like to understand the grammar of the files. It looks like there is some type of binary header for each macro - something like ^@^@macroname^@^@<number> <number> On one level - if I just filter out the ^@ perhaps the diffs would be meaningful enough. Would this be a good start or is there a better approach? Thanks. I'm very new to QuickMacros (I'm working with Dr. Stuart Pomerantz). Sean
01-23-2013, 05:06 AM
I can explain .qml format. It is mostly text, but text items are separated with one or several binary bytes.
But maybe more useful would be to have functions to convert .qml to text, eg XML, and back? I'll create the functions if need. In some new QM version QM will use completely different file format, maybe Sqlite database. Because .qml is too limited.
01-23-2013, 12:21 PM
Convert .qml (QM file) to .xml
Convert .qml (QM file) to .xml
01-23-2013, 03:49 PM
I think this might work but I'm doing something wrong. When I try to compile the code I get
Error in Macro: CLSID is unknown. Here are the steps that I've followed:
This results in the error above. When I enter C:\Development\RadFusion>"c:\program files (x86)\quick macros 2\qmcl.exe" M "QmlToXml" A QmlToXml.qml test.xml I'm running this on a 64 bit Windows 7 machine.
01-23-2013, 03:56 PM
Replace
IXml x._create to IXml x=CreateXml _create supported in QM 2.3.4.
02-07-2013, 04:28 PM
Thanks.
I decided to go a different direction with this because all I really needed was a clean way to do a diff between versions. I have this working in two different source control applications (git and SourceGear Vault). The basic idea is to use the unix 'strings' command to create text files as input into the diff engines. With git it's very easy - I had installed git with cygwin and thus had access to 'strings' from the bash command shell. There are pretty good instructions at this URL: http://git-scm.com/book/en/Customizing-G...Attributes. See how they configure the .gitattributes and .git/config file for Word *.doc files - I just did the same with *.qml files. When you enter git diff it will show you the differences in the file from the last checkin. It also shows a number of control characters and integer offset differences - but in general it's pretty easy to read. SourceGear's Vault needed a few extra steps.
At this point you should be able to show differences in Vault as if it was standard text source code. There will be some of the control characters and offsets displayed in the code but it does show the differences in source very clearly. Source of qmldiff.bat @echo off I could make the batch file more robust creating directories and doing some error trapping - but this worked for me. |
« Next Oldest | Next Newest »
|