7
7
from errors import NotCheckout, UncommittedCheckout
12
12
wt = WorkingTree.open(path)
13
13
except (NoWorkingTree, NotBranchError):
15
15
tree_base = wt.bzrdir.transport.base
17
18
if tree_base == branch_base:
19
20
delta = compare_trees(wt.basis_tree(), wt, want_unchanged=False)
21
22
raise UncommittedCheckout()