/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: Robert Collins
  • Date: 2010-05-06 11:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506110810-h3j07fh5gmw54s25
Cleaner matcher matching revised unlocking protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2008 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
1179
1179
 
1180
1180
class InvalidRevisionSpec(BzrError):
1181
1181
 
1182
 
    _fmt = ("Requested revision: %(spec)r does not exist in branch:"
 
1182
    _fmt = ("Requested revision: '%(spec)s' does not exist in branch:"
1183
1183
            " %(branch)s%(extra)s")
1184
1184
 
1185
1185
    def __init__(self, spec, branch, extra=None):
1297
1297
class BoundBranchOutOfDate(BzrError):
1298
1298
 
1299
1299
    _fmt = ("Bound branch %(branch)s is out of date with master branch"
1300
 
            " %(master)s.")
 
1300
            " %(master)s.%(extra_help)s")
1301
1301
 
1302
1302
    def __init__(self, branch, master):
1303
1303
        BzrError.__init__(self)
1304
1304
        self.branch = branch
1305
1305
        self.master = master
 
1306
        self.extra_help = ''
1306
1307
 
1307
1308
 
1308
1309
class CommitToDoubleBoundBranch(BzrError):
2175
2176
 
2176
2177
    def __init__(self, repo):
2177
2178
        BzrError.__init__(self)
2178
 
        self.repo_path = repo.bzrdir.root_transport.base
 
2179
        self.repo_path = repo.user_url
2179
2180
 
2180
2181
 
2181
2182
class InconsistentDelta(BzrError):
2753
2754
 
2754
2755
    def __init__(self, bzrdir):
2755
2756
        import bzrlib.urlutils as urlutils
2756
 
        display_url = urlutils.unescape_for_display(bzrdir.root_transport.base,
 
2757
        display_url = urlutils.unescape_for_display(bzrdir.user_url,
2757
2758
                                                    'ascii')
2758
2759
        BzrError.__init__(self, bzrdir=bzrdir, display_url=display_url)
2759
2760
 
2834
2835
            more = ' ' + more
2835
2836
        import bzrlib.urlutils as urlutils
2836
2837
        display_url = urlutils.unescape_for_display(
2837
 
            tree.bzrdir.root_transport.base, 'ascii')
 
2838
            tree.user_url, 'ascii')
2838
2839
        BzrError.__init__(self, tree=tree, display_url=display_url, more=more)
2839
2840
 
2840
2841
 
3124
3125
 
3125
3126
    def __init__(self, path):
3126
3127
        self.path = path
 
3128
 
 
3129
 
 
3130
class NoColocatedBranchSupport(BzrError):
 
3131
 
 
3132
    _fmt = ("%(bzrdir)r does not support co-located branches.")
 
3133
 
 
3134
    def __init__(self, bzrdir):
 
3135
        self.bzrdir = bzrdir
 
3136