/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/git/tests/__init__.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:
40
40
TestCaseWithTransport = tests.TestCaseWithTransport
41
41
TestCaseWithMemoryTransport = tests.TestCaseWithMemoryTransport
42
42
 
 
43
 
43
44
class _DulwichFeature(Feature):
44
45
 
45
46
    def _probe(self):
85
86
        self._counter += 1
86
87
        from fastimport.commands import BlobCommand
87
88
        blob = BlobCommand(b'%d' % self._counter, content)
88
 
        self._write(bytes(blob)+b"\n")
 
89
        self._write(bytes(blob) + b"\n")
89
90
        return self._counter
90
91
 
91
92
    def set_symlink(self, path, content):
93
94
        mark = self._create_blob(self._encode_path(content))
94
95
        mode = b'120000'
95
96
        self.commit_info.append(b'M %s :%d %s\n'
96
 
                % (mode, mark, self._encode_path(path)))
 
97
                                % (mode, mark, self._encode_path(path)))
97
98
 
98
99
    def set_file(self, path, content, executable):
99
100
        """Create or update content at a given path."""