/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/per_repository_vf/helpers.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 23:19:12 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7294.
  • Revision ID: jelmer@jelmer.uk-20181116231912-e043vpq22bdkxa6q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                root_id = inv.root.file_id
61
61
                repo.texts.add_lines((root_id, b'revision-id'), [], [])
62
62
            revision = _mod_revision.Revision(b'revision-id',
63
 
                committer='jrandom@example.com', timestamp=0,
64
 
                inventory_sha1=inv_sha1, timezone=0, message='message',
65
 
                parent_ids=[])
 
63
                                              committer='jrandom@example.com', timestamp=0,
 
64
                                              inventory_sha1=inv_sha1, timezone=0, message='message',
 
65
                                              parent_ids=[])
66
66
            # Manually add the revision text using the RevisionStore API, with
67
67
            # bad parents.
68
68
            rev_text = repo._serializer.write_revision_to_string(revision)
69
69
            repo.revisions.add_lines((revision.revision_id,),
70
 
                [(b'incorrect-parent',)],
71
 
                osutils.split_lines(rev_text))
 
70
                                     [(b'incorrect-parent',)],
 
71
                                     osutils.split_lines(rev_text))
72
72
        except:
73
73
            repo.abort_write_group()
74
74
            repo.unlock()
80
80
        repo.lock_write()
81
81
        self.addCleanup(repo.unlock)
82
82
        return repo
83