~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testrevisionnamespaces.py

merge in John Meinels integration branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                          'b@r-0-4')
75
75
        self.assertEquals(RevisionSpec('ancestor:.').in_history(b3).rev_id,
76
76
                          'b@r-0-4')
 
77
 
 
78
 
 
79
        # Make sure you can create a revision spec from another revision spec
 
80
        spec = RevisionSpec('revid:a@r-0-4')
 
81
        self.assertEquals(spec, RevisionSpec(spec))
 
82
 
 
83
        spec = RevisionSpec('1')
 
84
        self.assertEquals(spec, RevisionSpec(spec))
 
85
 
 
86
        spec_1 = RevisionSpec(1)
 
87
        self.assertEquals(spec_1, RevisionSpec(spec_1))
 
88
        self.assertEquals(spec, spec_1)
 
89