I don’t complain dependency on git (although I don’t like git).
I was just talking about this (I am not sure how long could this link work because git could rebase it ) where in prerelease there is version string enhanced by build_number which is generated by this or this. And in latter case some functionality (sorry I don’t remember which) was silently switched off. I suppose I could not update some packages…
Maybe better to fire error if build_number in prerelease version is -1 ?
Build number could be literally presented in some file and could be changed manually or automatically by some commit hooks. Then you could make appropriate version without
.git directory… (which you don’t have if you use hggit)
BTW what will
git rev-list --count HEAD "^$verchanged" return in case some heads are rebased?