/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

Finish sftp refactoring. Test suite passing.

* bzrlib/transport/sftp.py:
(clear_connection_cache): Deprecated.
(_sftp_connect, _sftp_connect_uncached): Deleted.
(SFTPTransport.__init__): Simplified.
(SFTPTransport._create_connection): New method. Copied from
_sftp_connect_uncached
(SFTPTransport._get_sftp): New method. Ensures that the connection
is established.
(SFTPTransport.clone): Deleted.
(SFTPTransport.has, SFTPTransport.get, SFTPTransport.readv,
SFTPTransport._put,
SFTPTransport._put_non_atomic_helper._open_and_write_file,
SFTPTransport._mkdir, SFTPTransport.append_file,
SFTPTransport.rename, SFTPTransport._rename_and_overwrite,
SFTPTransport.delete, SFTPTransport.rmdir, SFTPTransport.stat):
Use _get_sftp.

* bzrlib/tests/test_transport_implementations.py:
(TransportTests.test_connection_error): Simplified now that sftp
does not connection on construction.

* bzrlib/tests/test_sftp_transport.py:
(SFTPLockTests.test_sftp_locks): Delete test_multiple_connections.
(FakeSFTPTransport): Deleted.
(SFTPNonServerTest.test_parse_url_with_home_dir,
SFTPNonServerTest.test_relpath,
SSHVendorBadConnection.test_bad_connection_paramiko): Delete the
from_transport parameter as it's not needed anymore.
(SFTPLatencyKnob.test_latency_knob_slows_transport,
SFTPLatencyKnob.test_default): Force connection by issuing a
request.

Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 2408.1.8 18 years ago Alexander Belchenko forget to return tree 12.9 KB Diff Download File
test_get_file_mtime.py 2405.3.1 18 years ago John Arbash Meinel Add some tests for get_file_mtime, and clean up ot 1.6 KB Diff Download File
test_get_symlink_target.py 2255.2.134 18 years ago John Arbash Meinel Add a tree-test for get_symlink_target and impleme 1.7 KB Diff Download File
test_inv.py 2408.1.3 18 years ago Alexander Belchenko tree_implementations: make usage of symlinks optio 9.7 KB Diff Download File
test_list_files.py 2255.2.71 18 years ago John Arbash Meinel Add a test for list_files, and implement it for Di 2.1 KB Diff Download File
test_revision_tree.py 1908.11.5 18 years ago John Arbash Meinel [merge] bzr.dev 2240 1.2 KB Diff Download File
test_test_trees.py 2408.1.3 18 years ago Alexander Belchenko tree_implementations: make usage of symlinks optio 13.6 KB Diff Download File
test_tree.py 2338.4.9 18 years ago Marien Zwart More tests for symlinks in tree inventories. 3.3 KB Diff Download File
test_walkdirs.py 2408.1.3 18 years ago Alexander Belchenko tree_implementations: make usage of symlinks optio 4.3 KB Diff Download File