29
29
is_ancestor, MultipleRevisionSources,
31
from bzrlib.symbol_versioning import zero_ninetythree
31
from bzrlib.symbol_versioning import one_zero
32
32
from bzrlib.tests import TestCase, TestCaseWithTransport
33
33
from bzrlib.trace import mutter
34
34
from bzrlib.workingtree import WorkingTree
140
140
self.addCleanup(br2.unlock)
142
self.assertTrue(self.applyDeprecated(zero_ninetythree,
142
self.assertTrue(self.applyDeprecated(one_zero,
143
143
is_ancestor, revisions[0], revisions[0], br1))
144
self.assertTrue(self.applyDeprecated(zero_ninetythree,
144
self.assertTrue(self.applyDeprecated(one_zero,
145
145
is_ancestor, revisions[1], revisions[0], sources))
146
self.assertFalse(self.applyDeprecated(zero_ninetythree,
146
self.assertFalse(self.applyDeprecated(one_zero,
147
147
is_ancestor, revisions[0], revisions[1], sources))
148
self.assertTrue(self.applyDeprecated(zero_ninetythree,
148
self.assertTrue(self.applyDeprecated(one_zero,
149
149
is_ancestor, revisions_2[3], revisions[0], sources))
150
150
# disabled mbp 20050914, doesn't seem to happen anymore
151
151
## self.assertRaises(NoSuchRevision, is_ancestor, revisions_2[3],
152
## revisions[0], br1)
153
self.assertTrue(self.applyDeprecated(zero_ninetythree,
152
## revisions[0], br1)
153
self.assertTrue(self.applyDeprecated(one_zero,
154
154
is_ancestor, revisions[3], revisions_2[4], sources))
155
self.assertTrue(self.applyDeprecated(zero_ninetythree,
155
self.assertTrue(self.applyDeprecated(one_zero,
156
156
is_ancestor, revisions[3], revisions_2[4], br1))
157
self.assertTrue(self.applyDeprecated(zero_ninetythree,
157
self.assertTrue(self.applyDeprecated(one_zero,
158
158
is_ancestor, revisions[3], revisions_2[3], sources))
159
159
## self.assert_(not is_ancestor(revisions[3], revisions_2[3], br1))