This is an archive of the discontinued Mercurial Phabricator instance.

build: Delaying version computation on macOS builds.
ClosedPublic

Authored by rdamazio on Aug 3 2017, 11:13 PM.

Details

Summary

The way HGVER is evaluated now, it'll be evaluated at the beginning of the
make execution - with this change, it's evaluated when it gets to that command,
at which point the version file it's looking for is sure to exist and be
up-to-date.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

rdamazio created this revision.Aug 3 2017, 11:13 PM

I'd guess it's because it was evaluated before the __version__.py file existed before this change, not dependent on directories. So the fix looks good, but I suspect the commit message should be updated.

rdamazio edited the summary of this revision. (Show Details)Aug 4 2017, 12:04 AM
rdamazio retitled this revision from build: Allow Makefile to be recursively invoked on MacOS X to build: Delaying version computation on macOS builds..

Updated description

martinvonz accepted this revision.Aug 4 2017, 1:07 PM
This revision is now accepted and ready to land.Aug 4 2017, 1:07 PM
This revision was automatically updated to reflect the committed changes.