~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_foreign.py

  • Committer: Jelmer Vernooij
  • Date: 2010-08-02 13:40:08 UTC
  • mto: This revision was merged to the branch mainline in revision 5389.
  • Revision ID: jelmer@samba.org-20100802134008-kbinww4ikgqu8g1f
Add ControlDirFormat.{un,}register_{server_,}prober.

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
    controldir.ControlDirFormat.register_format(DummyForeignVcsDirFormat)
260
260
    testcase.addCleanup(controldir.ControlDirFormat.unregister_format,
261
261
                        DummyForeignVcsDirFormat)
262
 
    controldir.probers.append(DummyForeignProber)
263
 
    testcase.addCleanup(controldir.probers.remove, DummyForeignProber)
 
262
    controldir.ControlDirFormat.register_prober(DummyForeignProber)
 
263
    testcase.addCleanup(controldir.ControlDirFormat.unregister_prober,
 
264
        DummyForeignProber)
264
265
    # We need to register the optimiser to make the dummy appears really
265
266
    # different from a regular bzr repository.
266
267
    branch.InterBranch.register_optimiser(InterToDummyVcsBranch)