~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/symbol_versioning.py

  • Committer: v.ladeuil+lp at free
  • Date: 2007-01-09 15:33:36 UTC
  • mto: (2323.7.1 redirection)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: v.ladeuil+lp@free.fr-20070109153336-8iucozbcxmpb1az6
First implementation of transport hints.

* bzrlib/tests/test_transport_hints.py: 
New file.

* bzrlib/transport/__init__.py:
(TransportHints, TransportGetHints): New hints classes.
(Transport.create_get_hints): New method creating a suitable hints
object.

* bzrlib/tests/__init__.py:
(test_suite): Add test_transport_hints.

* bzrlib/errors.py:
(RedirectRequested.__init__): Fix typo.
(UnknownHint): New exception class.

* bzrlib/bzrdir.py:
(BzrDirFormat.probe_transport): Pass a hints object to
transport.get.

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
    # def __init__(self, bad, other)
140
140
    # def __init__(self, **kwargs)
141
141
    # RBC 20060116
 
142
    # You mean something along the lines of python 2.5 functools.partial ?
 
143
    # vila 20070109
142
144
    return not parameter_value is DEPRECATED_PARAMETER
143
145
 
144
146