/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: Jelmer Vernooij
  • Date: 2009-06-30 16:07:49 UTC
  • mfrom: (4493 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4494.
  • Revision ID: jelmer@samba.org-20090630160749-xtdp10w22ahpvmhs
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
636
636
        self.url = url
637
637
 
638
638
 
 
639
class UnstackableLocationError(BzrError):
 
640
 
 
641
    _fmt = "The branch '%(branch_url)s' cannot be stacked on '%(target_url)s'."
 
642
 
 
643
    def __init__(self, branch_url, target_url):
 
644
        BzrError.__init__(self)
 
645
        self.branch_url = branch_url
 
646
        self.target_url = target_url
 
647
 
 
648
 
639
649
class UnstackableRepositoryFormat(BzrError):
640
650
 
641
651
    _fmt = ("The repository '%(url)s'(%(format)s) is not a stackable format. "
2161
2171
    _fmt = "To use this feature you must upgrade your repository at %(path)s."
2162
2172
 
2163
2173
 
 
2174
class RichRootUpgradeRequired(UpgradeRequired):
 
2175
 
 
2176
    _fmt = ("To use this feature you must upgrade your branch at %(path)s to"
 
2177
           " a format which supports rich roots.")
 
2178
 
 
2179
 
2164
2180
class LocalRequiresBoundBranch(BzrError):
2165
2181
 
2166
2182
    _fmt = "Cannot perform local-only commits on unbound branches."
2167
2183
 
2168
2184
 
2169
 
class InvalidProgressBarType(BzrError):
2170
 
 
2171
 
    _fmt = ("Environment variable BZR_PROGRESS_BAR='%(bar_type)s"
2172
 
            " is not a supported type Select one of: %(valid_types)s")
2173
 
 
2174
 
    def __init__(self, bar_type, valid_types):
2175
 
        BzrError.__init__(self, bar_type=bar_type, valid_types=valid_types)
2176
 
 
2177
 
 
2178
2185
class UnsupportedOperation(BzrError):
2179
2186
 
2180
2187
    _fmt = ("The method %(mname)s is not supported on"
2771
2778
 
2772
2779
class UncommittedChanges(BzrError):
2773
2780
 
2774
 
    _fmt = 'Working tree "%(display_url)s" has uncommitted changes.'
 
2781
    _fmt = ('Working tree "%(display_url)s" has uncommitted changes'
 
2782
            ' (See bzr status).')
2775
2783
 
2776
2784
    def __init__(self, tree):
2777
2785
        import bzrlib.urlutils as urlutils