~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.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:
1797
1797
 
1798
1798
    def __init__(self, branch):
1799
1799
        self.branch = branch
 
1800
 
 
1801
        
 
1802
class TagAlreadyExists(BzrError):
 
1803
 
 
1804
    _fmt = "Tag %(tag_name)s already exists."
 
1805
 
 
1806
    def __init__(self, tag_name):
 
1807
        self.tag_name = tag_name