On 24/01/2021 20:08, Pierre-Yves David wrote:
Just a small note: Finding the revision introducing a tag is not that simpleā€¦ because:

1) they might be multiple of them
2) merge "introduce" tags without being their first appearance.

So you best bet is probably to walk history of the .hgtags revlogs (which might be what your are suggesting) and compare which tags are being newly introduced (actually, (name, node) pair).

That is probably the "best" you can hope for that.

Yes, that is what I was suggesting.
Is there some sample code to access .hgtags revlog directly, or is looking at the way annotate walks the tree with a matcher the best bet?

If you are a repository using some filtering (eg: evolution) it can become trickier since the `linkrev` pointer can point to filtered content, making it useless. In that case you need to walk the normal changelog revision (I would recommende walking up) and apply the same logic when the .hgtags files changed.

Wouldn't the filtering only be applied if you were on an active topic?

Thanks

Roy
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to