How to programmatically list tags for a revision?
mpm at selenic.com
Mon Mar 19 15:01:41 CDT 2012
On Mon, 2012-03-19 at 19:38 +0000, Jason R. Coombs wrote:
> Thanks. That's helpful. I've started implementing the feature using hg tags, but I've run into another hitch.
> When one runs hg id with --rev, one can specify the revision using the
> local incremental id or a partial hash or a full hash.
Or bookmark or tag or branch or revset, etc.
> Thus, to down select the appropriate tags, I believe I need to
> re-implement the revision matching algorithm.
I guess you want to find tags that match not a particular known
revision, but an arbitrary revision specifier. Seems like you should:
1) resolve the identifier with hg id -nr <some specifier>
2) find the corresponding tags with hg tags
Though that does suggest it might be useful to allow 'hg tags' to take
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial