/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_annotate.py

  • Committer: Jelmer Vernooij
  • Date: 2018-07-07 19:27:38 UTC
  • mto: (7027.4.10 python3-blackbox)
  • mto: This revision was merged to the branch mainline in revision 7038.
  • Revision ID: jelmer@jelmer.uk-20180707192738-cbt5f28lbd3lx4td
Add some more bees; support writing both bytes and unicode strings in build_tree_contents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        self.addCleanup(builder.finish_series)
182
182
        builder.build_snapshot(None, [
183
183
            ('add', ('', b'root-id', 'directory', None)),
184
 
            ('add', ('a', b'a-id', 'file', 'first\n')),
 
184
            ('add', ('a', b'a-id', 'file', b'first\n')),
185
185
            ], timestamp=1166046000.00, timezone=0, committer="joe@foo.com",
186
186
            revision_id=b'rev-1')
187
187
        builder.build_snapshot([b'rev-1'], [
456
456
        self.assertBranchAnnotate(b'1   committ | hello\n', tree1.branch,
457
457
            'a', b'rev-1')
458
458
 
459
 
        to_file = BytesIO()
460
459
        self.assertBranchAnnotate(b'2   author@ | bye\n', tree1.branch,
461
460
            'b', b'rev-2')
462
461