Versioning builds from repos

Matt Mackall mpm at selenic.com
Thu Jul 9 11:18:28 CDT 2009


On Thu, 2009-07-09 at 17:53 +0200, Martin Geisler wrote:
> Matt Mackall <mpm at selenic.com> writes:
> 
> > [...] I think I'd rather see something like:
> >
> > {lasttag}-{rev}-{node|short}
> >
> > Where {lasttag} is the nearest ancestor tag (tipmost if there's a
> > tie). Your distance concept has all the same uniqueness issues as rev,
> > so I think just using rev is more straightforward than introducing a
> > new concept.
> 
> The difference between using the revision number and the longest
> distance to a tag is that the latter is well-defined for a given
> changeset.

> So two changesets might very well have the same distance to a tag, but
> at least a changeset will have a stable distance. The revision numbers
> are neither unique nor stable.

True.

It's still preferable to have this as a separate template element (ie
{lasttagdistance}) so that people who don't need a monotonically
increasing number can skip it.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list