~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_multiparent.py

  • Committer: Aaron Bentley
  • Date: 2007-06-13 04:37:30 UTC
  • mto: (2520.5.2 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: aaron.bentley@utoronto.ca-20070613043730-lll1fxxy3mfne2dl
Handle empty versions correctly

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        self.assertEqual(REV_A, vf.get_line_list(['rev-a'])[0])
149
149
        self.assertEqual([REV_B, REV_C], vf.get_line_list(['rev-b', 'rev-c']))
150
150
 
 
151
    def test_reconstruct_empty(self):
 
152
        vf = multiparent.MultiMemoryVersionedFile()
 
153
        vf.add_version([], 'a', [])
 
154
        self.assertEqual([], self.reconstruct_version(vf, 'a'))
 
155
 
151
156
    @staticmethod
152
157
    def reconstruct(vf, revision_id, start, end):
153
158
        reconstructor = multiparent._Reconstructor(vf, vf._lines,