|
|
|
|
Re: Qualifier replacement when SCM is Git [message #768755 is a reply to message #768725] |
Tue, 20 December 2011 18:05 |
|
The qualifier format is a standard SimpleDateFormat so feel free to add
both seconds (and microseconds ;-) ) if you feel that's needed.
- thomas
On 2011-12-20 18:02, Matthew Webber wrote:
> Thanks Henrik. I just tried that, and it works fine. Theoretically you
> could have two commits within 1 minute, so the qualifier does not quite
> uniquely identify the state of the repository, but it's good enough for us.
> Matthew
>
|
|
|
Re: Qualifier replacement when SCM is Git [message #768758 is a reply to message #768667] |
Tue, 20 December 2011 18:07 |
|
On 2011-12-20 16:24, Matthew Webber wrote:
> Git of course does not have revision numbers, but I expected that the
> qualifier would be replaced by the SHA1 hash that Git uses as a sort of
> revision number equivalent.
>
The SHA1 is useless because it doesn't reflect an increasing magnitude.
Thus, using it you would get versions that are actually less than the
previous one. Hence the need for lastModified rather than lastRevision
when using git.
- thomas
|
|
|
|
Re: Qualifier replacement when SCM is Git [message #771944 is a reply to message #771903] |
Wed, 28 December 2011 15:56 |
|
On 2011-12-28 14:37, Jesper Eskilson wrote:
> On 12/20/2011 07:07 PM, Thomas Hallgren wrote:
>> On 2011-12-20 16:24, Matthew Webber wrote:
>>> Git of course does not have revision numbers, but I expected that the
>>> qualifier would be replaced by the SHA1 hash that Git uses as a sort of
>>> revision number equivalent.
>>>
>> The SHA1 is useless because it doesn't reflect an increasing magnitude.
>> Thus, using it you would get versions that are actually less than the
>> previous one. Hence the need for lastModified rather than lastRevision
>> when using git.
>
> Wouldn't it be possible to implement a qualifier replacement which extracted the timestamp from the time of the latest
> commit (in the plugin/feature)?
>
That's exactly what the lastModified does.
- thomas
|
|
|
|
Powered by
FUDForum. Page generated in 0.04853 seconds