remote-bzr: avoid unreferred tags

They have no content, there's nothing we can do with them. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Apr 5, 2013 at 21:49 UTC 8954441ac7468cf3659f70747d390ed7c9f070d5
1 file changed +4
contrib/remote-helpers/git-remote-bzr
+4
@@ -654,7 +654,11 @@ def do_capabilities(parser):
654 def do_list(parser):
655 global tags
656 print "? refs/heads/%s" % 'master'
657 +
658 + history = parser.repo.revision_history()
659 for tag, revid in parser.repo.tags.get_tag_dict().items():
660 + if revid not in history:
661 + continue
662 print "? refs/tags/%s" % tag
663 tags[tag] = revid
664 print "@refs/heads/%s HEAD" % 'master'