1
1
from shutil import rmtree
3
7
from bzrlib.branch import Branch
4
8
from bzrlib.errors import NoWorkingTree, NotLocalUrl, NotBranchError
5
9
from bzrlib.workingtree import WorkingTree
7
from errors import (NotCheckout, UncommittedCheckout, ParentMissingRevisions,
11
from errors import (NotCheckout, UncommittedCheckout, ParentMissingRevisions,
11
15
def zap(path, remove_branch=False):
14
19
except (NoWorkingTree, NotBranchError):
16
21
tree_base = wt.bzrdir.transport.base