qwat / QWAT

TEKSI Water module (project QWAT) - QGIS project
https://www.teksi.ch
GNU General Public License v2.0
58 stars 31 forks source link

Better version tags for QWAT's project #219

Open haubourg opened 7 years ago

haubourg commented 7 years ago

Hi all, currently, it is not clear for a non git user to know what project version he is using. For the data model, it's easier since we have a version table.

I was wondering if we could change the QGIS project to add this information. I would imagine a "QWAT - master development branch - [commit sha]" and for releases " QWAT - version [tag]"

@3nids do you think a pre-commit hook could automate that ?

3nids commented 7 years ago

That would be feasible with a hook, but you would change file name or a tag in the xml? The latter would work nicely.

Although an interesting feature would be to let QGIS do automatically that (show branch and/or sha in the project name if the project's folder is a GIT repo)

haubourg commented 7 years ago

A tag in the XML was the idea, nested in the project property title, so that the title bar reflect QWAT's version. About your idea, can't we achieve that using a variable filled by a python function?

3nids commented 7 years ago

that would work if project title would support expression, which it does not. the commit hook would be your best way to go I guess.