~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-29 18:41:01 UTC
  • mfrom: (2796.2.22 bzr.reconfigure)
  • Revision ID: pqm@pqm.ubuntu.com-20071129184101-u9506rihe4zbzyyz
bzr reconfigure can now convert to lightweight checkout

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
            format = BzrDirFormat.get_default_format()
246
246
        return format.initialize_on_transport(t)
247
247
 
 
248
    def destroy_repository(self):
 
249
        """Destroy the repository in this BzrDir"""
 
250
        raise NotImplementedError(self.destroy_repository)
 
251
 
248
252
    def create_branch(self):
249
253
        """Create a branch in this BzrDir.
250
254
 
931
935
            raise errors.IncompatibleFormat('shared repository', self._format)
932
936
        return self.open_repository()
933
937
 
 
938
    def destroy_repository(self):
 
939
        """See BzrDir.destroy_repository."""
 
940
        raise errors.UnsupportedOperation(self.destroy_repository, self)
 
941
 
934
942
    def create_workingtree(self, revision_id=None, from_branch=None):
935
943
        """See BzrDir.create_workingtree."""
936
944
        # this looks buggy but is not -really-
1109
1117
        """See BzrDir.create_repository."""
1110
1118
        return self._format.repository_format.initialize(self, shared)
1111
1119
 
 
1120
    def destroy_repository(self):
 
1121
        """See BzrDir.destroy_repository."""
 
1122
        self.transport.delete_tree('repository')
 
1123
 
1112
1124
    def create_workingtree(self, revision_id=None, from_branch=None):
1113
1125
        """See BzrDir.create_workingtree."""
1114
1126
        return self._format.workingtree_format.initialize(