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