Getting revision numbers from a centralized repository

Gilles Moris gilles.moris at free.fr
Wed Jun 2 19:33:52 UTC 2010


On Wednesday 02 June 2010 04:13:05 pm Mads Kiilerich wrote:
> latesttag kind of gives that - assuming tags are used properly.
>
> There is no single obvious way to do that in a DVCS where users might
> have different local unpushed changesets which could be considered
> "revision n+1". You can define what it means to you. Using a central
> conting/tagging server could one answer - perhaps run as a hook on "the"
> central server.
>
> For other uses (where you _really_ want a monotonically increasing
> version number locally) it seems like it also could be convenient to
> have a "nulldistance" template variable:

Both are monotonically increasing, but none ais assured to be unique. I would 
not use that.

Regards.
Gilles.



More information about the Mercurial mailing list