~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2006-04-13 23:03:17 UTC
  • mfrom: (1661.1.1 bzr.mbp.remember)
  • mto: This revision was merged to the branch mainline in revision 1663.
  • Revision ID: mbp@sourcefrog.net-20060413230317-a1543afe041b1266
[merge] push/pull/merge --remember

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)