My apologies. "latesttag" prints the latest tag that is an *ancestor*
of the given revision, so it's the last release that *didn't* have
that change. Of course, with mercurial having to deal with branching,
that's the only direction in which relations are well-defined. For
sage development, we want the oldest tag that is a descendant, so you
should use

    val=subprocess.check_output(["hg","log",
               "-r","limit(descendants(%s) and tag(),1)"%rev,
               "--template","{tags}"])

instead of just printing "{latesttag}".

-- 
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org



Reply via email to