builds from hg-stable 592c454477c6 archives missing version info

Jon M jon.forums at gmail.com
Mon May 18 11:27:00 CDT 2009


Building from downloaded archives from
http://selenic.com/repo/index.cgi/hg-stable fails to provide version info
for "hg version" info due to incomplete environment checking in "setup.py". 
Specifically, as no ".hg" dir exists in the exploded archive directory tree,
"setup.py" does not generate a "mercurial/__version__.py" file with version
info.

However, all archives available from hg-stable currently contain a
".hg_archival.txt" file (peer of "setup.py") with version info.

Attached is a very simplistic patch (LF-only line endings) that works for me
on my WinXP SP3, Python 2.6.2 system.  It's had very little testing. 
Basically it extends the current ".hg" dir check with a check-for-n-parse of
the ".hg_archival.txt" file.  Assuming ".hg_archival.txt" continues to
included with the archives, hopefully this will be useful to those not
tracking hg-stable via a repo clone.

Jon

http://www.nabble.com/file/p23600815/verinfo.patch verinfo.patch 


-- 
View this message in context: http://www.nabble.com/builds-from-hg-stable-592c454477c6-archives-missing-version-info-tp23600815p23600815.html
Sent from the Mercurial mailing list archive at Nabble.com.



More information about the Mercurial mailing list