Comment 6 for bug 3918

Revision history for this message
David Allouche (ddaa) wrote : Re: bzr doesn't handle filenames with newlines

Can you increase the priority of this bug? It is currently blocking one launchpad code import: https://launchpad.net/coccinella/trunk

  File "/home/importd/dists/launchpad/lib/bzrlib/commit.py", line 317, in commit
    self.rev_id = self.builder.commit(self.message)
  File "/home/importd/dists/launchpad/sourcecode/bzr/bzrlib/repository.py", line 1973, in commit
    self.new_inventory, self._config)
  File "<string>", line 4, in add_revision_write_locked
  File "/home/importd/dists/launchpad/sourcecode/bzr/bzrlib/repository.py", line 134, in add_revision
    plaintext = Testament(rev, inv).as_short_text()
  File "/home/importd/dists/launchpad/lib/bzrlib/testament.py", line 178, in as_short_text
    return (self.short_header +
  File "/home/importd/dists/launchpad/lib/bzrlib/testament.py", line 198, in as_sha1
    map(s.update, self.as_text_lines())
  File "/home/importd/dists/launchpad/lib/bzrlib/testament.py", line 135, in as_text_lines
    a(self._entry_to_line(path, ie))
  File "/home/importd/dists/launchpad/lib/bzrlib/testament.py", line 168, in _entry_to_line
    l = u' %s %s %s%s%s\n' % (ie.kind, self._escape_path(path),
  File "/home/importd/dists/launchpad/lib/bzrlib/testament.py", line 149, in _escape_path
    assert not contains_linebreaks(path)
AssertionError