/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_fetch.py

  • Committer: Jelmer Vernooij
  • Date: 2017-11-16 00:39:04 UTC
  • mto: This revision was merged to the branch mainline in revision 6818.
  • Revision ID: jelmer@jelmer.uk-20171116003904-p6lcb827m6thxbzd
Migrate some build_snapshot code over to having revision_id as keyword argument.

Show diffs side-by-side

added added

removed removed

Lines of Context:
407
407
            fname = 'file%03d' % (i,)
408
408
            fileid = '%s-%s' % (fname, osutils.rand_chars(64))
409
409
            to_add.append(('add', (fname, fileid, 'file', 'content\n')))
410
 
        builder.build_snapshot('A', None, to_add)
411
 
        builder.build_snapshot('B', ['A'], [])
412
 
        builder.build_snapshot('C', ['A'], [])
413
 
        builder.build_snapshot('D', ['C'], [])
414
 
        builder.build_snapshot('E', ['D'], [])
415
 
        builder.build_snapshot('F', ['E', 'B'], [])
 
410
        builder.build_snapshot(None, to_add, revision_id='A')
 
411
        builder.build_snapshot(['A'], [], revision_id='B')
 
412
        builder.build_snapshot(['A'], [], revision_id='C')
 
413
        builder.build_snapshot(['C'], [], revision_id='D')
 
414
        builder.build_snapshot(['D'], [], revision_id='E')
 
415
        builder.build_snapshot(['E', 'B'], [], revision_id='F')
416
416
        builder.finish_series()
417
417
        source_branch = builder.get_branch()
418
418
        source_branch.controldir.sprout('base', revision_id='B')