~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

(jelmer) Raise NotBranchError from BzrDir.destroy_branch. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6454
6454
    def run(self, location=None):
6455
6455
        if location is None:
6456
6456
            location = "."
6457
 
        branch = Branch.open_containing(location)[0]
6458
 
        branch.bzrdir.destroy_branch()
 
6457
        cdir = controldir.ControlDir.open_containing(location)[0]
 
6458
        cdir.destroy_branch()
6459
6459
 
6460
6460
 
6461
6461
class cmd_shelve(Command):