~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-09-17 14:29:23 UTC
  • mfrom: (2796.2.18 bzr.reconfigure)
  • Revision ID: pqm@pqm.ubuntu.com-20070917142923-f06edfgw1d0cvj4w
Add reconfigure command

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
        """
245
245
        raise NotImplementedError(self.create_branch)
246
246
 
 
247
    def destroy_branch(self):
 
248
        """Destroy the branch in this BzrDir"""
 
249
        raise NotImplementedError(self.destroy_branch)
 
250
 
247
251
    @staticmethod
248
252
    def create_branch_and_repo(base, force_new_repo=False, format=None):
249
253
        """Create a new BzrDir, Branch and Repository at the url 'base'.
894
898
        """See BzrDir.create_branch."""
895
899
        return self.open_branch()
896
900
 
 
901
    def destroy_branch(self):
 
902
        """See BzrDir.destroy_branch."""
 
903
        raise errors.UnsupportedOperation(self.destroy_branch, self)
 
904
 
897
905
    def create_repository(self, shared=False):
898
906
        """See BzrDir.create_repository."""
899
907
        if shared:
1070
1078
        """See BzrDir.create_branch."""
1071
1079
        return self._format.get_branch_format().initialize(self)
1072
1080
 
 
1081
    def destroy_branch(self):
 
1082
        """See BzrDir.create_branch."""
 
1083
        self.transport.delete_tree('branch')
 
1084
 
1073
1085
    def create_repository(self, shared=False):
1074
1086
        """See BzrDir.create_repository."""
1075
1087
        return self._format.repository_format.initialize(self, shared)