~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

merge dirstate and trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1862
1862
        self.tree = tree
1863
1863
        self.other_tree = other_tree
1864
1864
        self.reason = reason
 
1865
 
 
1866
 
 
1867
class NoSuchTag(BzrError):
 
1868
 
 
1869
    _fmt = "No such tag: %(tag_name)s"
 
1870
 
 
1871
    def __init__(self, tag_name):
 
1872
        self.tag_name = tag_name
 
1873
 
 
1874
 
 
1875
class TagsNotSupported(BzrError):
 
1876
 
 
1877
    _fmt = "Tags not supported by %(branch)s; you may be able to use bzr upgrade."
 
1878
 
 
1879
    def __init__(self, branch):
 
1880
        self.branch = branch
 
1881
 
 
1882
        
 
1883
class TagAlreadyExists(BzrError):
 
1884
 
 
1885
    _fmt = "Tag %(tag_name)s already exists."
 
1886
 
 
1887
    def __init__(self, tag_name):
 
1888
        self.tag_name = tag_name