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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
        self.parent_ids = rev.parent_ids[:]
121
121
        if not isinstance(tree, Tree):
122
122
            raise TypeError("As of bzr 2.4 Testament.__init__() takes a "
123
 
                "Revision and a Tree.")
 
123
                            "Revision and a Tree.")
124
124
        self.tree = tree
125
125
        self.revprops = copy(rev.properties)
126
126
        if contains_whitespace(self.revision_id):
173
173
        if contains_whitespace(ie.file_id):
174
174
            raise ValueError(ie.file_id)
175
175
        content = ''
176
 
        content_spacer=  ''
 
176
        content_spacer = ''
177
177
        if ie.kind == 'file':
178
178
            # TODO: avoid switching on kind
179
179
            if not ie.text_sha1:
224
224
    long_header = 'bazaar-ng testament version 2.1\n'
225
225
    short_header = 'bazaar-ng testament short form 2.1\n'
226
226
    include_root = False
 
227
 
227
228
    def _entry_to_line(self, path, ie):
228
229
        l = Testament._entry_to_line(self, path, ie)[:-1]
229
230
        l += ' ' + ie.revision.decode('utf-8')