-
Committer:
v.ladeuil+lp at free
-
Date:
2006-12-21 10:28:19 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-20061221102819-308frw80r38lluqa
Automates the 'hints' parameter addition to get transport prototypes.
* bzrlib/transport/__init__.py:
(_get_prototype_infos, _build_arglist, _inject_get_with_hints,
_check_get_with_hints): New methods to ensure the compatibility
with old code while adding a new parameter to the transport.get
method.
* bzrlib/transport/local.py:
(LocalTransport.get): Delete the 'hints' parameter to demonstrate
the solution.
* bzrlib/transport/ftp.py:
(FtpTransport.get): Delete the 'hints' parameter to demonstrate
the solution.
* bzrlib/bzrdir.py:
(BzrDir.open_from_transport): Try to not use magic values. Clean
up transport.follow_redirections uses.
* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib._get): dict objects already provides a 'get'
with a default value, you silly.
* bzrlib/transport/http/_pycurl.py:
(PyCurlTransport._get_full): Give a default value to the hints
parameter as this is called explicitely without it.
* bzrlib/transport/chroot.py:
(ChrootTransportDecorator.get): Forward the 'hints' parameter.