[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [FORGE] How to find when a package was released
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: [FORGE] How to find when a package was released |
Date: |
Fri, 17 Oct 2014 10:36:48 -0400 |
On Fri, 2014-10-17 at 10:23 -0400, Mike Miller wrote:
> On Fri, Oct 17, 2014 at 16:11:47 +0200, JuanPi wrote:
> > Hi all,
> >
> > What is the most efficient method to list the date of the last release
> > of a package?
>
> Efficient depends on what you've got at your disposal :) If you have
> the hg repo cloned,
>
> hg tags
> hg log -v -r $LAST_TAG_NAME
>
Or
hg log -r 'last(sort(tag(), date))'
that is, get all the tagged revisions, sort them by date, and pick the
last one. I guess that's a bit more typing, but I couldn't resist
talking about revsets again (see `hg help revsets`).
- Jordi G. H.