Jump to content

Usage of "Revision" variable Qdb.Measurement(1232, -1)


---
 Share

Recommended Posts

Dear Experts,

First of all: Happy first December! 😃

We use the local revision provided by CALYPSO ( which is a git in fact ) to trace changes and check a released version of a programm. Well that´s the idea...
If we check out a version, the appropiate version of the program is diplayed and forward to PiWeb. We can use the actual version in variable Qdb.Measurement(1232, -1). If we simple use the working copy the variable is allways "0.0". As autorun is not able to check out a specific version it will run allways using the working copy and therfore the variable is allways "0.0".

This means that the variable "Revision" cannot be used meaningfully. 😭

What I expect:
If no revision is used, the content of variable "Revision" should set to something like "None". (Can be simply done like: ${IfNotEmpty(Qdb.Measurement(1232, -1), "None")} )
Loading the working copy the corresponding version must be set to the variable "Revision" as long it was not changed.( Need to store somewhere which is the actual version. Should be possible by using git hooks )
If the local working directory was changed against the last check in / check out the variable "Revision" should set like "Modified" ( Need to run a diff against actual Version at load time of the program )

I don't expect ZEISS to come up with anything sensible here: 🙁
How do you solve the problem of displaying and storing the current version in PiWeb database?

Best Regards
Karsten
Link to comment
Share on other sites

 Share

×
×
  • Create New...