Better StGit version tracking
authorKarl Hasselström <kha@treskal.com>
Tue, 13 May 2008 21:50:31 +0000 (23:50 +0200)
committerKarl Hasselström <kha@treskal.com>
Tue, 13 May 2008 21:50:31 +0000 (23:50 +0200)
commitdef828cfb469ba358ae156f7f019dd0c013ef7df
tree01cd775f535361b317d546f4434a2f4150a04e9c
parenta2ba4d541c7f651d08fbbdd87048975b52909cc2
Better StGit version tracking

Instead of claiming to be the latest released version (really, a
hardcoded string that we hope is the latest released version), run git
describe to figure out what version we are, just like git does. Fall
back to a hardcoded value that is generated at install time, or
supplied in a release tarball.

Currently, we have to give git describe the --tags flag, since StGit
release tags are lightweight tags. This means we're going to pick up
any lightweight tags the user makes, which isn't ideal. The solution
is to start making annotated release tags, and then remove that flag.

Signed-off-by: Karl Hasselström <kha@treskal.com>
setup.py
stgit/.gitignore
stgit/version.py