~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-13 23:16:57 UTC
  • mfrom: (1662.1.1 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060413231657-bce3d67d3e7a4f2b
(mbp/olaf) push/pull/merge --remember improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
fullstop.
54
54
"""
55
55
 
 
56
from warnings import warn
 
57
 
56
58
# based on Scott James Remnant's hct error classes
57
59
 
58
60
# TODO: is there any value in providing the .args field used by standard
454
456
 
455
457
class AmbiguousBase(BzrError):
456
458
    def __init__(self, bases):
 
459
        warn("BzrError AmbiguousBase has been deprecated as of bzrlib 0.8.",
 
460
                DeprecationWarning)
457
461
        msg = "The correct base is unclear, becase %s are all equally close" %\
458
462
            ", ".join(bases)
459
463
        BzrError.__init__(self, msg)