~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to zap.py

  • Committer: Aaron Bentley
  • Date: 2006-08-08 02:29:34 UTC
  • mto: This revision was merged to the branch mainline in revision 425.
  • Revision ID: aaron.bentley@utoronto.ca-20060808022934-c5e50b01aefe43d2
More updates for 0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
from bzrlib.branch import Branch
4
4
from bzrlib.errors import NoWorkingTree, NotLocalUrl, NotBranchError
5
 
from bzrlib.delta import compare_trees
6
5
from bzrlib.workingtree import WorkingTree
7
6
 
8
7
from errors import (NotCheckout, UncommittedCheckout, ParentMissingRevisions, 
19
18
    branch_base = branch.bzrdir.transport.base
20
19
    if tree_base == branch_base:
21
20
        raise NotCheckout(path)
22
 
    delta = compare_trees(wt.basis_tree(), wt, want_unchanged=False)
 
21
    delta = wt.changes_from(wt.basis_tree(), want_unchanged=False)
23
22
    if delta.has_changed():
24
23
        raise UncommittedCheckout()
25
24
    if remove_branch: