~bzr-pqm/bzr/bzr.dev

  • Committer: v.ladeuil+lp at free
  • Date: 2006-12-13 17:37:07 UTC
  • mto: (2323.7.1 redirection)
  • Revision ID: v.ladeuil+lp@free.fr-20061213173707-a1gflgoke6b3eboc
First rough http branch redirection implementation.

* bzrlib/transport/http/_urllib2_wrappers.py:
(Request.__init__): Unless told otherwise, redirections are
followed silently.
(HTTPRedirectHandler.http_error_30x): Follow redirection or return
a 30x error.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib._perform): Raises RedirectRequested if the
request requires it.
(HttpTransport_urllib._get): Update the request from the hints
parameter if needed.

* bzrlib/errors.py:
 (RedirectRequested): New TransportError.

* bzrlib/bzrdir.py:
(BzrDir.open_from_transport): Catch RedirectRequested and retry
with the redirected url until we get to the final destination.
(BzrDirFormat.probe_transport): Hints get to not follow the
redirections but instead tell us where this branch is redirected.

* bzrlib/transport/smart.py:
(SmartTransport.get): Add a 'hint' parameter.

* bzrlib/transport/sftp.py:
(SFTPTransport.get): Add a 'hint' parameter.

* bzrlib/transport/memory.py:
(MemoryTransport.get): Add a 'hint' parameter.

* bzrlib/transport/local.py:
(LocalTransport.get): Add a 'hint' parameter.

* bzrlib/transport/http/_pycurl.py:
(PyCurlTransport._get): Add a 'hint' parameter and pass it to
_get_full.

* bzrlib/transport/http/__init__.py:
(HttpTransportBase.get): Add a 'hint' parameter and pass
it to _get.

* bzrlib/transport/ftp.py:
(FtpTransport.get): Add a 'hint' parameter.

* bzrlib/transport/fakevfat.py:
(FakeVFATTransportDecorator.get): Add a 'hint' parameter and pass
it to the decorated transport.

* bzrlib/transport/decorator.py:
(TransportDecorator.get): Add a 'hint' parameter and pass it to the
decorated transport.

* bzrlib/transport/chroot.py:
(ChrootTransportDecorator.get): Add a 'hint' parameter. Delete a
duplicated definition of the method.

* bzrlib/transport/__init__.py:
(Transport.get): Add a 'hint' parameter.
(TransportLogger.get): Add a 'hint' parameter and pass it to the
        
Filename Latest Rev Last Changed Committer Comment Size
..
http 1540.3.3 18 years ago Martin Pool Review updates of pycurl transport Split them out Diff
__init__.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 46.2 KB Diff Download File
chroot.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 4.7 KB Diff Download File
decorator.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 6.8 KB Diff Download File
fakenfs.py 1887.1.1 18 years ago Adeodato Simó Do not separate paragraphs in the copyright statem 2.3 KB Diff Download File
fakevfat.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 3.7 KB Diff Download File
ftp.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 26.5 KB Diff Download File
local.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 17.6 KB Diff Download File
memory.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 9.8 KB Diff Download File
readonly.py 1955.3.15 18 years ago John Arbash Meinel Deprecate 'Transport.append' in favor of Transport 2.9 KB Diff Download File
sftp.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 46.8 KB Diff Download File
smart.py 2164.2.1 17 years ago v.ladeuil+lp at free First rough http branch redirection implementation 65.1 KB Diff Download File
ssh.py 1551.9.2 17 years ago Aaron Bentley Bugfix for paramiko connections 18.9 KB Diff Download File