~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

(jelmer) Various improvements to allow working tree interface tests to run
 against foreign formats. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3091
3091
    def unregister_format(klass, format):
3092
3092
        format_registry.remove(format)
3093
3093
 
 
3094
    def get_controldir_for_branch(self):
 
3095
        """Get the control directory format for creating branches.
 
3096
 
 
3097
        This is to support testing of working tree formats that can not exist
 
3098
        in the same control directory as a branch.
 
3099
        """
 
3100
        return self._matchingbzrdir
 
3101
 
3094
3102
 
3095
3103
format_registry.register_lazy("Bazaar Working Tree Format 4 (bzr 0.15)\n",
3096
3104
    "bzrlib.workingtree_4", "WorkingTreeFormat4")