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