~spiv/bzr-loom/bzr-2.4-compat

« back to all changes in this revision

Viewing changes to branch.py

  • Committer: Andrew Bennetts
  • Date: 2011-02-25 04:42:55 UTC
  • Revision ID: andrew.bennetts@canonical.com-20110225044255-6wpkk94upox0dwrb
BranchFormat._branch_class is a method, not a class attribute.

Show diffs side-by-side

added added

removed removed

Lines of Context:
818
818
            transport, 'lock', bzrlib.lockdir.LockDir)
819
819
        if found_repository is None:
820
820
            found_repository = a_bzrdir.find_repository()
821
 
        return self._branch_class(_format=self,
 
821
        return self._branch_class()(_format=self,
822
822
                          _control_files=control_files,
823
823
                          a_bzrdir=a_bzrdir,
824
824
                          _repository=found_repository,
855
855
    This format is new in the loom plugin.
856
856
    """
857
857
 
858
 
    _branch_class = LoomBranch
 
858
    def _branch_class(self):
 
859
        return LoomBranch
 
860
 
859
861
    _parent_classs = bzrlib.branch.BzrBranchFormat5
860
862
 
861
863
    def get_format_string(self):
882
884
    This format is new in the loom plugin.
883
885
    """
884
886
 
885
 
    _branch_class = LoomBranch6
 
887
    def _branch_class(self):
 
888
        return LoomBranch6
 
889
 
886
890
    _parent_classs = bzrlib.branch.BzrBranchFormat6
887
891
 
888
892
    def get_format_string(self):
909
913
    This format is new in the loom plugin.
910
914
    """
911
915
 
912
 
    _branch_class = LoomBranch7
 
916
    def _branch_class(self):
 
917
        return LoomBranch7
 
918
 
913
919
    _parent_classs = bzrlib.branch.BzrBranchFormat7
914
920
 
915
921
    def get_format_string(self):