localrepo.tags()

David Baum dbaum at google.com
Wed Oct 8 19:51:19 UTC 2008


I have a question about the operation of localrepo.tags().  When merging two
sets of nodes for a given tag, it looks the history of a and b are merged
together, but the losing node (either an or bn) is simply discarded.  Is
this an oversight, or intentional?  Also, I don't really understand the
reasoning behind the len(bh)>len(ah) check.  Is the number of times a tag
was forced on a branch really a good measure of how relevant that definition
is with respect to another branch's definition of the tag?

The motivation for this is that I'm trying to figure out a good way to keep
track of tags and incrementally update them whenever a new version of
.hgtags is seen, rather than having to extract and process .hgtags each time
the tags need to be read.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial-devel/attachments/20081008/10e6dcb4/attachment.htm 


More information about the Mercurial-devel mailing list