Comment 3 for bug 36889

Revision history for this message
Andrew Bennetts (spiv) wrote : sftp server requires product directories to be created explicitly

It turns out bzr push already has a --create-prefix option, by the way.

To an extent, this isn't a launchpad bug: pushing to a new directory directory on any other SFTP server would have the exact same issue. The only reason why it seems to be such a big issue is that launchpad requires a certain directory structure, and also because bzr doesn't suggest trying --create-prefix as part of it's "Parent directory of %s does not exist." message.

That said, it would be nice to have pushing to ~user/new-product/new-branch "just work" even if the user doesn't have any other branches in new-product. Robert informs me that bzr does optimistically try to mkdir the whole thing first, so this should just require a change to the server. This change may be a little ugly, but we'll see.