Matt Mackall <mpm@selenic.com> [Fri, 06 Mar 2009 09:15:47 -0600] rev 7826
setup.py: fix version detection for tarball
- don't do version detection if there's no .hg directory
- shrink try: clause
- don't write __version__.py if version is unknown
(we might overwrite the real version)