[PATCH 5 of 5] setup: append the latesttag to the version string for untagged versions
Benoit Boissinot
benoit.boissinot at ens-lyon.org
Sat Oct 17 00:40:51 UTC 2009
[patch serie is fine, except this bit]
On Fri, Oct 16, 2009 at 09:16:29AM -0000, Gilles Moris wrote:
> # HG changeset patch
> # User Gilles Moris <gilles.moris at free.fr>
> # Date 1255684437 -7200
> # Node ID 3cfa2b1bd29f119e6cc1d592e3f1f4ac4a1dc797
> # Parent 85521e9406339fe34ba928414cb2deb55dccafff
> setup: append the latesttag to the version string for untagged versions
>
> Here is an array summarizing the mercurial version string:
> [A] [B] [C] [D]
> [1] archive tag clean => tag
> [2] archive hash clean => sha1hash [latesttag+latesttagdistance]
> [3] archive tag dirty => N/A
> [4] archive hash dirty => N/A
> [5] clone tag clean => tag
> [6] clone hash clean => sha1hash [latesttag+latesttagdistance]
> [7] clone tag dirty => tag+date
> [8] clone hash dirty => sha1hash+date
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).
regards,
Benoit
--
:wq
More information about the Mercurial-devel
mailing list