~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_move.py

  • Committer: Mark Hammond
  • Date: 2008-12-28 05:21:23 UTC
  • mfrom: (3920 +trunk)
  • mto: (3932.1.1 prepare-1.11)
  • mto: This revision was merged to the branch mainline in revision 3937.
  • Revision ID: mhammond@skippinet.com.au-20081228052123-f78xs5sbdkotshwf
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    osutils,
24
24
    )
25
25
 
26
 
from bzrlib.workingtree_4 import WorkingTreeFormat4
 
26
from bzrlib.workingtree_4 import DirStateWorkingTreeFormat
27
27
from bzrlib.tests.workingtree_implementations import TestCaseWithWorkingTree
28
28
 
29
29
 
99
99
                                tree.move, ['a1'], to_name='sub1',
100
100
                                after=False)
101
101
        except TypeError:
102
 
            # WorkingTreeFormat4 doesn't have to maintain api compatibility
103
 
            # since it was deprecated before the class was introduced.
104
 
            if not isinstance(self.workingtree_format, WorkingTreeFormat4):
 
102
            # WorkingTreeFormat4 and later don't have to maintain api
 
103
            # compatibility since it was deprecated before they were introduced.
 
104
            if not isinstance(self.workingtree_format,
 
105
                DirStateWorkingTreeFormat):
105
106
                raise
106
107
        tree._validate()
107
108