~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branchbuilder.py

  • Committer: Jelmer Vernooij
  • Date: 2011-01-11 04:33:12 UTC
  • mto: (5582.12.2 weave-plugin)
  • mto: This revision was merged to the branch mainline in revision 5718.
  • Revision ID: jelmer@samba.org-20110111043312-g4wx6iuf9662f36d
Move weave formats into bzrlib.plugins.weave_fmt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
        # should look like it was not modified in the merge
325
325
        self.assertEqual('C-id', d_tree.inventory['c-id'].revision)
326
326
 
 
327
    def test_set_parent_to_null(self):
 
328
        builder = self.build_a_rev()
 
329
        builder.start_series()
 
330
        self.addCleanup(builder.finish_series)
 
331
        builder.build_snapshot('B-id', [],
 
332
            [('add', ('', None, 'directory', None))])
 
333
        # We should now have a graph:
 
334
        #   A B
 
335
        # And not A => B
 
336
        repo = builder.get_branch().repository
 
337
        self.assertEqual({'A-id': (_mod_revision.NULL_REVISION,),
 
338
                          'B-id': (_mod_revision.NULL_REVISION,),},
 
339
                         repo.get_parent_map(['A-id', 'B-id']))
 
340
 
 
341
    
327
342
    def test_start_finish_series(self):
328
343
        builder = BranchBuilder(self.get_transport().clone('foo'))
329
344
        builder.start_series()