Mercurial > hg
diff contrib/hgclient.py @ 33110:6fdc1518983e
setup: fail if we cannot determine the version number
If running hg fails, exit the setup script unsuccessfully, rather than
proceeding to use a bogus version of "+0-". Using an invalid version number
causes various tests to fail later. Failing early makes it easier to identify
the source of the problem.
It is currently easy for setup.py to fail this way since it sets HGRCPTH to the
empty string before running "hg", which may often disable extensions necessary
to interact with the local repository.
author | Adam Simpkins <simpkins@fb.com> |
---|---|
date | Mon, 26 Jun 2017 11:31:30 -0700 |
parents | 3f45488d70df |
children | 73c2b9c9cd3c |