~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/controldir.py

(jelmer) Add ControlDirFormat.supports_transport(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
853
853
        """Return the current default format."""
854
854
        return klass._default_format
855
855
 
 
856
    def supports_transport(self, transport):
 
857
        """Check if this format can be opened over a particular transport.
 
858
        """
 
859
        raise NotImplementedError(self.supports_transport)
 
860
 
856
861
 
857
862
class Prober(object):
858
863
    """Abstract class that can be used to detect a particular kind of