kumquat-buildroot/support
Thomas De Schampheleire 57e6dcf5fb support/scripts/setlocalversion: fix detection of hg revision when _not_ on branch 'default'
When Buildroot is stored in a Mercurial repository on a branch other than
'default' ('master' in git terms), setlocalversion (used to populate
/etc/os-release) will incorrectly think that this is a tagged version and
will NOT print out the revision hash.

This is due to the fact that the output of 'hg id' is assumed to be
    "<revision> <tags-if-any>"
but when on a branch it actually is:
    "<revision> (<branch>) <tags-if-any>"

To let setlocalversion receive the output it expects, explicitly ask 'hg id'
to retrieve only the revision hash and any tags, ommitting any branch
information.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-02-04 21:25:33 +01:00
..
config-fragments support/config-fragments: add RISC-V 32-bit to autobuild configs 2019-01-10 21:30:21 +01:00
dependencies infra: add force build flag for host dependencies 2019-02-04 15:52:44 +01:00
docker support/docker: use the distro-provided flake8 2018-06-17 20:54:02 +02:00
download support/download: fix scp downloads 2019-01-03 22:05:43 +01:00
gnuconfig support/gnuconfig: bump version to 2016-05-15 2016-06-05 22:26:57 +02:00
kconfig support/kconfig/merge_config.sh: avoid false positive matches from comment lines 2018-11-24 10:11:15 +01:00
legal-info legal-info: add hash for our own license file 2017-07-05 16:31:40 +02:00
libtool
misc infra/pkg-cmake: use an obviously-invalid value for CMAKE_SYSTEM_VERSION 2019-01-16 23:19:09 +01:00
scripts support/scripts/setlocalversion: fix detection of hg revision when _not_ on branch 'default' 2019-02-04 21:25:33 +01:00
testing testing/tests/download: test case for git refs 2019-02-04 20:44:29 +01:00