/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-13 00:34:53 UTC
  • mfrom: (7027.3.8 python3-n)
  • Revision ID: breezy.the.bot@gmail.com-20180713003453-3wofrh7brng5jz3l
Add some more bees; support writing both bytes and unicode strings in build_tree_contents.

Merged from https://code.launchpad.net/~jelmer/brz/python3-n/+merge/349091

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