History log of /haiku/build/scripts/determine_haiku_revision
Revision Date Author Comments
# 2d9270e8 18-Sep-2018 waddlesplash <waddlesplash@gmail.com>

determine_haiku_revision: Properly get rid of the commit hash.

Change-Id: I3f57b1cd4d819e7f531001d747bf7b103954a918
Reviewed-on: https://review.haiku-os.org/581
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 563a1a0d 15-Sep-2018 Augustin Cavalier <waddlesplash@gmail.com>

determine_haiku_revision: Rework "no tag on HEAD" output.

When HEAD is tagged, the output will be identical to what it was
before (the latest hrev tag and nothing else.) When HEAD is not tagged,
and the most recent tag is further back, we now use a format like this:

hrevXXXXX+N(+dirty)

... where N is the number of commits since hrevXXXXX, and +dirty is added
if the working tree is dirty. This is significantly shorter than the
previous model (as it does not have the Git revision.)

Fixes #14445.

Change-Id: Ide7f66cf0ac1c1f05402afc52b6be3b68b66d6dc
Reviewed-on: https://review.haiku-os.org/566
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# d4563ace 31-May-2014 Oliver Tappe <zooey@hirschkaefer.de>

Improve handling of Haiku clone without any tags.

* Error out early with a hint about how to solve the problem (by setting
HAIKU_REVISION explicitly).


# a1e68169 26-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Rework rule CopySetHaikuRevision

* Remove support for VCSs other than git.
* Make the haiku-revision file a regular build target and make sure it
is built only once.
* Make determine_haiku_revision an actual shell script and simplify
it a bit.


# d86bc7f9 14-Jan-2013 John Scipione <jscipione@gmail.com>

If can't find hrev tags set the version to the short hash

If no hrev tags are found the revision is blank and shows up as
0 in About System. This commit updates the revision function so that
it falls back to the current short hash instead. Only affects devel
builds and only if you've deleted your tags.


# 1b3d2b0c 06-Jun-2011 Oliver Tappe <zooey@hirschkaefer.de>

Simplify haiku-revision for git, now that we provide revision-tags in our central git repo:
* instead of describing the changeset from perspective of the current branch's root,
we describe it relative to the last reachable hrev-tag


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41979 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 901c33fc 24-May-2011 Michael Lotz <mmlr@mlotz.ch>

Replace the $(...) syntax with backticks instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41721 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 85d9520e 24-May-2011 Michael Lotz <mmlr@mlotz.ch>

Use gsed instead of sed on Mac OS X as the builtin sed doesn't support all the
options we need. This still requires gsed to be installed from ports.
Fixes #7563.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41719 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2fe19bf6 16-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Adjusted code for determining the revision in order to hopefully work on FreeBSD, too
* convert determine_haiku_revision to only contain functions and now pass the arguments
via function call


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41539 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ff44a43 15-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Fix and improve code for determining Haiku revision from a git repo
* break out most of the CopySetHaikuRevision action into a separate script:
determine_haiku_revision
* fix git branch detection such that it'll actually work for local branches (thanks to
Andreas Färber for the hint)
* add some sanity checks


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41520 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d4563ace7249976077d803b82397ab72af9bfe74 31-May-2014 Oliver Tappe <zooey@hirschkaefer.de>

Improve handling of Haiku clone without any tags.

* Error out early with a hint about how to solve the problem (by setting
HAIKU_REVISION explicitly).


# a1e681690c19a50d6c61e6c8bd98d6af4be146d4 26-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Rework rule CopySetHaikuRevision

* Remove support for VCSs other than git.
* Make the haiku-revision file a regular build target and make sure it
is built only once.
* Make determine_haiku_revision an actual shell script and simplify
it a bit.


# d86bc7f95e3f0fe8bf3527737cfc7c8ef0bbde70 14-Jan-2013 John Scipione <jscipione@gmail.com>

If can't find hrev tags set the version to the short hash

If no hrev tags are found the revision is blank and shows up as
0 in About System. This commit updates the revision function so that
it falls back to the current short hash instead. Only affects devel
builds and only if you've deleted your tags.


# 1b3d2b0c460489546d491c94ab250a98ceacd16e 06-Jun-2011 Oliver Tappe <zooey@hirschkaefer.de>

Simplify haiku-revision for git, now that we provide revision-tags in our central git repo:
* instead of describing the changeset from perspective of the current branch's root,
we describe it relative to the last reachable hrev-tag


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41979 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 901c33fcd07eb6b34ea56b99c93357e9e66e0181 24-May-2011 Michael Lotz <mmlr@mlotz.ch>

Replace the $(...) syntax with backticks instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41721 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 85d9520ec42dfe58d2d6e0d9f9c9750b00df7835 24-May-2011 Michael Lotz <mmlr@mlotz.ch>

Use gsed instead of sed on Mac OS X as the builtin sed doesn't support all the
options we need. This still requires gsed to be installed from ports.
Fixes #7563.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41719 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2fe19bf6ac78937f8f1daa77e9519c12f5c978ad 16-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Adjusted code for determining the revision in order to hopefully work on FreeBSD, too
* convert determine_haiku_revision to only contain functions and now pass the arguments
via function call


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41539 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ff44a43293c7a00470f8bf52881f7610899e256 15-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Fix and improve code for determining Haiku revision from a git repo
* break out most of the CopySetHaikuRevision action into a separate script:
determine_haiku_revision
* fix git branch detection such that it'll actually work for local branches (thanks to
Andreas Färber for the hint)
* add some sanity checks


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41520 a95241bf-73f2-0310-859d-f6bbb57e9c96