/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-02 21:17:35 UTC
  • mfrom: (4504 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4522.
  • Revision ID: john@arbash-meinel.com-20090702211735-rmfim8kjtveledy4
Merge bzr.dev 4504

Show diffs side-by-side

added added

removed removed

Lines of Context:
2093
2093
 
2094
2094
class OutOfDateTree(BzrError):
2095
2095
 
2096
 
    _fmt = "Working tree is out of date, please run 'bzr update'."
 
2096
    _fmt = "Working tree is out of date, please run 'bzr update'.%(more)s"
2097
2097
 
2098
 
    def __init__(self, tree):
 
2098
    def __init__(self, tree, more=None):
 
2099
        if more is None:
 
2100
            more = ''
 
2101
        else:
 
2102
            more = ' ' + more
2099
2103
        BzrError.__init__(self)
2100
2104
        self.tree = tree
 
2105
        self.more = more
2101
2106
 
2102
2107
 
2103
2108
class PublicBranchOutOfDate(BzrError):
2778
2783
 
2779
2784
class UncommittedChanges(BzrError):
2780
2785
 
2781
 
    _fmt = 'Working tree "%(display_url)s" has uncommitted changes.'
 
2786
    _fmt = ('Working tree "%(display_url)s" has uncommitted changes'
 
2787
            ' (See bzr status).%(more)s')
2782
2788
 
2783
 
    def __init__(self, tree):
 
2789
    def __init__(self, tree, more=None):
 
2790
        if more is None:
 
2791
            more = ''
 
2792
        else:
 
2793
            more = ' ' + more
2784
2794
        import bzrlib.urlutils as urlutils
2785
2795
        display_url = urlutils.unescape_for_display(
2786
2796
            tree.bzrdir.root_transport.base, 'ascii')
2787
 
        BzrError.__init__(self, tree=tree, display_url=display_url)
 
2797
        BzrError.__init__(self, tree=tree, display_url=display_url, more=more)
2788
2798
 
2789
2799
 
2790
2800
class MissingTemplateVariable(BzrError):