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

  • Committer: Jelmer Vernooij
  • Date: 2018-05-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
            self._tree.add('', b'root-id', 'directory')
58
58
            self._root_done = True
59
59
        for name in recipe:
60
 
            if name.endswith('/'):
 
60
            if name[-1] == '/':
61
61
                self._tree.mkdir(name[:-1])
62
62
            else:
63
 
                end = b'\n'
64
 
                content = b"contents of %s%s" % (name.encode('utf-8'), end)
 
63
                end = '\n'
 
64
                content = "contents of %s%s" % (name.encode('utf-8'), end)
65
65
                self._tree.add(name, None, 'file')
66
66
                self._tree.put_file_bytes_non_atomic(name, content)
67
67