Comment 7 for bug 118653

Revision history for this message
Andrew Bennetts (spiv) wrote : Re: [Bug 118653] Re: Need --no-backup flag or similar to upgrade remote repos on launchpad

John A Meinel wrote:
[..]
> It sounds like the problem is that this was attempted one time, and now
> there is a .bzr.backup directory lying around that is preventing it from
> being done again.

That's not the problem. The problem is that recently the SFTP server stopped
allowing creation of any directory other than ".bzr" at that point in the
filesystem hierarchy (to prevent mistakes where users pushed to a directory too
deep, and thus made a branch Launchpad couldn't mirror).

Unfortunately, that includes ".bzr.backup". So probably that restriction in
Launchpad needs to be loosened slightly.

Of course, .bzr.backup are pretty inconvenient in Launchpad anyway, because how
can you revert to the backup .bzr if there's a problem? You need to find an
SFTP client that can recursively delete directories, then move the old one back.
And unless you only use a given branch as a checkout, you've probably tested the
upgrade locally anyway. So I think adding a --no-backup flag to upgrade would
be handy anyway.

-Andrew.