I use Mercurial for my projects, and I just realized that it would be mighty nice to get the id of the current commit to VersionName. It could be generalized to allow for execution of a binary and using the first line of the response as the actual value for any Region attribute.
So, to give an example of what I mean, something like this. (I do realize the syntax I use here is a bit weird, it's just to visualize.)
And in this case the hg.bat would contain something like this:
The last line produces something like 82870ef2ddda, which is the hg tag for that commit, which would then automatically be used as VersionName. When I start getting feedback about bugs, I can check their VersionName to find the exactly correct source and then investigate.
So, to give an example of what I mean, something like this. (I do realize the syntax I use here is a bit weird, it's just to visualize.)
B4X:
#VersionName: ${c:\myscripts\hg.bat}
And in this case the hg.bat would contain something like this:
B4X:
@echo off
cd /path/to/my/project
hg commit --quiet --message "Automatic commit from B4A compilation"
hg id -i
The last line produces something like 82870ef2ddda, which is the hg tag for that commit, which would then automatically be used as VersionName. When I start getting feedback about bugs, I can check their VersionName to find the exactly correct source and then investigate.