2010/12/9 E. Westbrook <mythtv-users@westbrook.com>:
> On Wed, Dec 8, 2010 at 20:11, Nick Rout <nick.rout@gmail.com> wrote:
>>
>> > But won't a variable length commit number cause havoc with things like
>> > rpm version comparisons. I guess there's a need to ensure that the
>> > version string components used allow for a previous component that is
>> > always increasing.
>>
>> mythbuntu is now numbering by date yyyymmdd then a hash number, eg:
>>
>> mythtv-common-0.24.0+fixes.20101208.3e9463e-0ubuntu0mythbuntu1
>
> Just as another way: To keep it numeric, increasing, and consistent, I'm
> currently numbering my Gentoo ebuilds using the unix integer commit
> timestamp of the commit at the point in question, which I can capture when
> checked out to the right HEAD using:
>
> $ echo 0.24.$(git log -n1 --pretty="format:%ct")
> 0.24.1291777173
>
> In reverse, I obtain the commit hash from that point in time on that branch
> with:
>
> $ echo $(git log -n1 --pretty="format:%H" --since=1291777173
> --until=1291777173)
> hash = ee57332927393d071d7b3f1788476f07c77f7e82
>
> which is great for direct checkout or use with github's tarball URL feature.
>
> Git is fun, isn't it!
>
> $0.02,
> EW
If you have a working solution for ebuilds on Gentoo - could you
please share your findings here:
http://bugs.gentoo.org/show_bug.cgi?id=347750
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> On Wed, Dec 8, 2010 at 20:11, Nick Rout <nick.rout@gmail.com> wrote:
>>
>> > But won't a variable length commit number cause havoc with things like
>> > rpm version comparisons. I guess there's a need to ensure that the
>> > version string components used allow for a previous component that is
>> > always increasing.
>>
>> mythbuntu is now numbering by date yyyymmdd then a hash number, eg:
>>
>> mythtv-common-0.24.0+fixes.20101208.3e9463e-0ubuntu0mythbuntu1
>
> Just as another way: To keep it numeric, increasing, and consistent, I'm
> currently numbering my Gentoo ebuilds using the unix integer commit
> timestamp of the commit at the point in question, which I can capture when
> checked out to the right HEAD using:
>
> $ echo 0.24.$(git log -n1 --pretty="format:%ct")
> 0.24.1291777173
>
> In reverse, I obtain the commit hash from that point in time on that branch
> with:
>
> $ echo $(git log -n1 --pretty="format:%H" --since=1291777173
> --until=1291777173)
> hash = ee57332927393d071d7b3f1788476f07c77f7e82
>
> which is great for direct checkout or use with github's tarball URL feature.
>
> Git is fun, isn't it!
>
> $0.02,
> EW
If you have a working solution for ebuilds on Gentoo - could you
please share your findings here:
http://bugs.gentoo.org/show_bug.cgi?id=347750
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users