/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Aaron Bentley
  • Date: 2007-09-09 07:13:15 UTC
  • mto: This revision was merged to the branch mainline in revision 2826.
  • Revision ID: aaron.bentley@utoronto.ca-20070909071315-9rdv0zzhp3ksc238
Implement destroy_branch

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
        raise NotImplementedError(self.destroy_branch)
 
249
 
247
250
    @staticmethod
248
251
    def create_branch_and_repo(base, force_new_repo=False, format=None):
249
252
        """Create a new BzrDir, Branch and Repository at the url 'base'.
894
897
        """See BzrDir.create_branch."""
895
898
        return self.open_branch()
896
899
 
 
900
    def destroy_branch(self):
 
901
        """See BzrDir.destroy_workingtree."""
 
902
        raise errors.UnsupportedOperation(self.destroy_branch, self)
 
903
 
897
904
    def create_repository(self, shared=False):
898
905
        """See BzrDir.create_repository."""
899
906
        if shared:
1070
1077
        """See BzrDir.create_branch."""
1071
1078
        return self._format.get_branch_format().initialize(self)
1072
1079
 
 
1080
    def destroy_branch(self):
 
1081
        """See BzrDir.create_branch."""
 
1082
        self.transport.delete_tree('branch')
 
1083
 
1073
1084
    def create_repository(self, shared=False):
1074
1085
        """See BzrDir.create_repository."""
1075
1086
        return self._format.repository_format.initialize(self, shared)