~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2485.8.34.

  • Committer: Vincent Ladeuil
  • Date: 2007-06-03 15:52:19 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070603155219-f7dtbnwdqrhs0kpk
Refactor mutiple connections detection and fix false positives. Only
merge and pull are still bougs.

* bzrlib/tests/commands/test_push.py:
(TestPush.test_push): Reset connections after branch and tree
creation.

* bzrlib/tests/commands/test_missing.py:
(TestMissing.test_missing): Reset connections after branch and tree
creation.

* bzrlib/tests/commands/test_merge.py:
(TestMerge.test_merge): Reset connections after branch and tree
creation.

* bzrlib/tests/commands/test_checkout.py:
(TestCheckout.test_checkout): Reset connections after branch and tree
creation.

* bzrlib/tests/commands/test_cat.py:
(TestCat.test_cat): Reset connections after branch and tree
creation.

* bzrlib/tests/commands/test_branch.py:
(TestBranch.setUp): Reset connections after branch and tree
creation.

* bzrlib/tests/TransportUtil.py:
(TransportHooks.__init__): Use _set_connection instead of
_get_FTP.
(ConnectionHookedTransport): Replace _get_FTP by _set_connection.
(TestCaseWithConnectionHookedTransport.setUp): Replace _get_FTP by
_set_connection.
(TestCaseWithConnectionHookedTransport.reset_connections): New
method.
(TestCaseWithConnectionHookedTransport.set_connection_hook):
Replace get_connection_hook.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: