/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: 2017-11-12 20:44:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6819.
  • Revision ID: jelmer@jelmer.uk-20171112204454-m3lxl0l09zduidxw
Fix some test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                end = '\n'
64
64
                content = "contents of %s%s" % (name.encode('utf-8'), end)
65
65
                self._tree.add(name, None, 'file')
66
 
                file_id = self._tree.path2id(name)
67
 
                self._tree.put_file_bytes_non_atomic(file_id, content)
 
66
                self._tree.put_file_bytes_non_atomic(name, content)
68
67
 
69
68
    def _ensure_building(self):
70
69
        """Raise NotBuilding if there is no current tree being built."""