~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testrevisionnamespaces.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-17 18:10:13 UTC
  • mto: (1185.1.27)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: john@arbash-meinel.com-20050917181012-44d8d4d413941ff1
RevisionSpec can be instantiated from another revision spec.

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