Versioning builds from repos

Matt Mackall mpm at selenic.com
Thu Jul 9 09:30:39 CDT 2009


On Wed, 2009-07-08 at 23:34 +0200, Gilles Moris wrote:
> On Thu June 25 2009 00:59:30 Mads Kiilerich wrote:
> > Something like the "nearest" extension could perhaps be useful. Longest 
> > distance to an official tag seems to be a good measure. Perhaps that 
> > extension could be distributed with Mercurial and used, or a lightweight 
> > version could be built in?
> > 
> > Obviously any good technical method would have to adjust or be adjusted 
> > to conventions for how tags are used and how releases are made.
> > 
> > I think it would be nice if both the rpm version and the version 
> > reported by hg could be something like "1.2.1-917-f0a7accf1d68".
> > 
> > Do you have any thoughts or comments about this?
> > 
> 
> I worked back on a patch using templates, which the crew seems looking for.
> So to get what you want with my patch, you would do:
> hg parent --template '{basedontags|stringify|strip}-{node|short}\n'
> 

It looks like the above with the number? 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.

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




More information about the Mercurial-devel mailing list