~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tag.py

  • Committer: Martin Pool
  • Date: 2007-02-26 05:29:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2309.
  • Revision ID: mbp@sourcefrog.net-20070226052905-7mt8m6871e9dym8e
Tag command refuses to replace existing tags unless you force it.

Add Tags.has_tag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    def __init__(self, branch):
41
41
        self.branch = branch
42
42
 
 
43
    def has_tag(self, tag_name):
 
44
        return self.get_tag_dict().has_key(tag_name)
 
45
 
43
46
 
44
47
class DisabledTags(_Tags):
45
48
    """Tag storage that refuses to store anything.