[Libreoffice] Naming builds. Please???

Lionel Elie Mamane lionel at mamane.lu
Sat Dec 3 13:16:43 PST 2011


On Sat, Dec 03, 2011 at 01:06:18PM +0100, Andras Timar wrote:
> 2011/12/3 Pedro Lino <pedlino at gmail.com>:

>> Another situation: I download a master build from a tinderbox. How do
>> I know the build included? How do I know if the source it was
>> generated from is newer or older than the one I already have? Easy.
>> Just install, open the About box and check if 4f11d0a-adcf6d5-c4bb9bd
>> is greater or smaller than 4f11d0a-adcf6d5-c4b29bd (just an example)

> You can check what's included and what's not, when you visit
> for example http://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=4f11d0a
> Those magic numbers in About box are git commit IDs.

Git commit IDs as identifiers have the huge problem that they are not
comparable (one cannot say which one is "greater") without referring
to the repository. How about we also put the *commit* (not author)
timestamp (in UTC) of the top node (commit), and maybe the branch?

Something like:

Build assembled from:
 repo  commit   date               branch
 core: 4f11d0a 2011-11-16 21:57:28 master
 help: adcf6d5 2011-11-05 14:01:21 master
 ...

Or instead of pretty-printing the date, just put it as seconds
since the epoch:

 core: 4f11d0a 1321480648 master
 help: adcf6d5 1320501681 master
 ...

Here's code to get that information:

echo $(git log -1 --format=%h) $(date --utc +'%Y-%m-%d %k:%M:%S' -d @$(git log -1 --format=%ct)) $(basename $(git symbolic-ref HEAD))

echo $(git log -1 --format='%h %ct') $(basename $(git symbolic-ref HEAD))

-- 
Lionel


More information about the LibreOffice mailing list