~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Aaron Bentley
  • Date: 2007-11-27 19:37:36 UTC
  • mto: This revision was merged to the branch mainline in revision 3052.
  • Revision ID: abentley@panoramicfeedback.com-20071127193736-fjqqz482w0a6400o
SupportĀ reconfigureĀ --lightweight-checkout

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
            format = BzrDirFormat.get_default_format()
237
237
        return format.initialize(base, possible_transports)
238
238
 
 
239
    def destroy_repository(self):
 
240
        """Destroy the repository in this BzrDir"""
 
241
        raise NotImplementedError(self.destroy_repository)
 
242
 
239
243
    def create_branch(self):
240
244
        """Create a branch in this BzrDir.
241
245
 
908
912
            raise errors.IncompatibleFormat('shared repository', self._format)
909
913
        return self.open_repository()
910
914
 
 
915
    def destroy_repository(self):
 
916
        """See BzrDir.destroy_repository."""
 
917
        raise errors.UnsupportedOperation(self.destroy_repository, self)
 
918
 
911
919
    def create_workingtree(self, revision_id=None):
912
920
        """See BzrDir.create_workingtree."""
913
921
        # this looks buggy but is not -really-
1086
1094
        """See BzrDir.create_repository."""
1087
1095
        return self._format.repository_format.initialize(self, shared)
1088
1096
 
 
1097
    def destroy_repository(self):
 
1098
        """See BzrDir.destroy_repository."""
 
1099
        self.transport.delete_tree('repository')
 
1100
 
1089
1101
    def create_workingtree(self, revision_id=None):
1090
1102
        """See BzrDir.create_workingtree."""
1091
1103
        from bzrlib.workingtree import WorkingTreeFormat