/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: Matthew Revell
  • Date: 2008-03-05 13:29:20 UTC
  • mfrom: (3250 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3263.
  • Revision ID: matthew.revell@canonical.com-20080305132920-nedj6gvy023h2w3a
LatestĀ fromĀ upstreadm

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2008 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
267
267
        "record_entry_contents.")
268
268
 
269
269
 
 
270
class NoPublicBranch(BzrError):
 
271
 
 
272
    _fmt = 'There is no public branch set for "%(branch_url)s".'
 
273
 
 
274
    def __init__(self, branch):
 
275
        import bzrlib.urlutils as urlutils
 
276
        public_location = urlutils.unescape_for_display(branch.base, 'ascii')
 
277
        BzrError.__init__(self, branch_url=public_location)
 
278
 
 
279
 
270
280
class NoHelpTopic(BzrError):
271
281
 
272
282
    _fmt = ("No help could be found for '%(topic)s'. "
499
509
    _fmt = 'Directory not empty: "%(path)s"%(extra)s'
500
510
 
501
511
 
 
512
class HardLinkNotSupported(PathError):
 
513
 
 
514
    _fmt = 'Hard-linking "%(path)s" is not supported'
 
515
 
 
516
 
502
517
class ReadingCompleted(InternalBzrError):
503
518
    
504
519
    _fmt = ("The MediumRequest '%(request)s' has already had finish_reading "
1971
1986
    _fmt = "Format error in conflict listings"
1972
1987
 
1973
1988
 
 
1989
class CorruptDirstate(BzrError):
 
1990
 
 
1991
    _fmt = ("Inconsistency in dirstate file %(dirstate_path)s.\n"
 
1992
            "Error: %(description)s")
 
1993
 
 
1994
    def __init__(self, dirstate_path, description):
 
1995
        BzrError.__init__(self)
 
1996
        self.dirstate_path = dirstate_path
 
1997
        self.description = description
 
1998
 
 
1999
 
1974
2000
class CorruptRepository(BzrError):
1975
2001
 
1976
2002
    _fmt = ("An error has been detected in the repository %(repo_path)s.\n"
1981
2007
        self.repo_path = repo.bzrdir.root_transport.base
1982
2008
 
1983
2009
 
 
2010
class InconsistentDelta(BzrError):
 
2011
    """Used when we get a delta that is not valid."""
 
2012
 
 
2013
    _fmt = ("An inconsistent delta was supplied involving %(path)r,"
 
2014
            " %(file_id)r\nreason: %(reason)s")
 
2015
 
 
2016
    def __init__(self, path, file_id, reason):
 
2017
        BzrError.__init__(self)
 
2018
        self.path = path
 
2019
        self.file_id = file_id
 
2020
        self.reason = reason
 
2021
 
 
2022
 
1984
2023
class UpgradeRequired(BzrError):
1985
2024
 
1986
2025
    _fmt = "To use this feature you must upgrade your branch at %(path)s."
2510
2549
        self.name = name
2511
2550
 
2512
2551
 
 
2552
class NoTemplate(BzrError):
 
2553
 
 
2554
    _fmt = 'No template specified.'
 
2555
 
 
2556
 
2513
2557
class UnableCreateSymlink(BzrError):
2514
2558
 
2515
2559
    _fmt = 'Unable to create symlink %(path_str)son this platform'