/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: Jelmer Vernooij
  • Date: 2019-05-29 03:22:34 UTC
  • mfrom: (7303 work)
  • mto: This revision was merged to the branch mainline in revision 7306.
  • Revision ID: jelmer@jelmer.uk-20190529032234-mt3fuws8gq03tapi
Merge trunk.

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."""