Part of bzrlib.controldir View In Hierarchy
Known subclasses: bzrlib.bzrdir.BzrProber, bzrlib.bzrdir.RemoteBzrProber, bzrlib.tests.test_controldir.NotBzrDirProber, bzrlib.tests.test_foreign.DummyForeignProber
At the moment this just contains a single method to probe a particular transport, but it may be extended in the future to e.g. avoid multiple levels of probing for Subversion repositories.
See BzrProber and RemoteBzrProber in bzrlib.bzrdir for the probers that detect .bzr/ directories and Bazaar smart servers, respectively.
Probers should be registered using the register_server_prober or register_prober methods on ControlDirFormat.
Method | probe_transport | Return the controldir style format present in a directory. |
Class Method | known_formats | Return the control dir formats known by this prober. |
Returns | A ControlDirFormat instance. | |
Raises | UnknownFormatError | If a control dir was found but is in an unknown format. |
NotBranchError | If no control directory was found. |
Multiple probers can return the same formats, so this should return a set.
Returns | A set of known formats. |