From: Karl Hasselström Date: Tue, 20 May 2008 21:33:12 +0000 (+0200) Subject: Try the built-in version string before git-describe X-Git-Tag: v0.15-rc1~235 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/5c5234dbdfab2cd1a7d90ab2b3635fe536e39bbc?hp=5c5234dbdfab2cd1a7d90ab2b3635fe536e39bbc Try the built-in version string before git-describe Try to get the built-in version string first, and fall back to git describe if there is no built-in string, instead of the other way around. This makes computing the version string much cheaper in the common case (whenever StGit is not run directly from a git-controlled tree). In order for this to work when StGit _is_ run directly from a git-controlled tree, setup.py has to delete the builtin version file once the installation process is over. (Otherwise, the StGit version in a git-controlled tree would be frozen at whatever value it happened to have when setup.py was last run.) Signed-off-by: Karl Hasselström ---