28
28
class TestRevisionNamespaces(TestCaseWithTransport):
30
def test_revno_n_path(self):
31
"""Test revision specifiers.
33
These identify revisions by date, etc."""
34
wta = self.make_branch_and_tree('a')
37
wta.commit('Commit one', rev_id='a@r-0-1')
38
wta.commit('Commit two', rev_id='a@r-0-2')
39
wta.commit('Commit three', rev_id='a@r-0-3')
41
wtb = self.make_branch_and_tree('b')
44
wtb.commit('Commit one', rev_id='b@r-0-1')
45
wtb.commit('Commit two', rev_id='b@r-0-2')
46
wtb.commit('Commit three', rev_id='b@r-0-3')
48
self.assertEquals(RevisionSpec('revno:1:a/').in_history(ba),
50
# The argument of in_history should be ignored since it is
51
# redundant with the path in the spec.
52
self.assertEquals(RevisionSpec('revno:1:a/').in_history(None),
54
self.assertEquals(RevisionSpec('revno:1:a/').in_history(bb),
56
self.assertEquals(RevisionSpec('revno:2:b/').in_history(None),
30
60
def test_revision_namespaces(self):
31
61
"""Test revision specifiers.