~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to upstream_import.py

  • Committer: Aaron Bentley
  • Date: 2006-08-09 17:16:46 UTC
  • mfrom: (423.1.7 bzrtools)
  • Revision ID: abentley@panoramicfeedback.com-20060809171646-317f34d7ab1da7fe
Merge from other bzrtools

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
from unittest import makeSuite
10
10
 
11
11
from bzrlib.bzrdir import BzrDir
12
 
from bzrlib.delta import compare_trees
13
12
from bzrlib.errors import NoSuchFile, BzrCommandError, NotBranchError
14
13
from bzrlib.osutils import pathjoin, isdir, file_iterator
15
14
from bzrlib.tests import TestCaseInTempDir
143
142
        tree = WorkingTree.open_containing('.')[0]
144
143
    tree.lock_write()
145
144
    try:
146
 
        if compare_trees(tree, tree.basis_tree()).has_changed():
 
145
        if tree.changes_from(tree.basis_tree()).has_changed():
147
146
            raise BzrCommandError("Working tree has uncommitted changes.")
148
147
 
149
148
        if (source.endswith('.tar') or source.endswith('.tar.gz') or