[PATCH 5 of 5] setup: append the latesttag to the version string for untagged versions

Gilles Moris gilles.moris at free.fr
Sat Oct 17 12:10:16 CDT 2009


On Saturday 17 October 2009 02:40:51 am Benoit Boissinot wrote:
> The space and the brackets aren't very nice, especially since they end
> up in the filenames generated by make dist-notests / python setup.py sdist
>
> maybe sha1hash-latesttag-dist ?
> or latesttag+dist+sha1hash (starting with latesttag has the property
> that the version is comparable and bigger than the version string from
> the release).

So to summarize:
      [A]       [B]   [C]           [D]
[1] archive    tag   clean =>  tag
[2] archive    hash  clean =>  latesttag+latesttagdistance-sha1hash
[3] archive    tag   dirty =>  N/A
[4] archive    hash  dirty =>  N/A
[5] clone      tag   clean =>  tag
[6] clone      hash  clean =>  latesttag+latesttagdistance-sha1hash
[7] clone      tag   dirty =>  tag+date
[8] clone      hash  dirty =>  latesttag+latesttagdistance-sha1hash+date

So it's consistent, usable for file names, predictable.

Regards.
Gilles.



More information about the Mercurial-devel mailing list