Another option is to just change the --no-backup behavior<br>to automatically delete the backup once everything was successful,<br>in stead of not backing up at all.<br><br>(this could even become the default, as this .bzr.backup directories lying around are a bit of a annoyance)
<br><br><div><span class="gmail_quote">On 7/20/07, <b class="gmail_sendername">Robert Collins</b> <<a href="mailto:robertc@robertcollins.net">robertc@robertcollins.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 2007-07-10 at 17:19 +0200, Lukáš Lalinský wrote:<br>> On St, 2007-07-11 at 01:01 +1000, Robert Collins wrote:<br>> > However --no-backup is really very dangerous; more dangerous than you<br>> > might predict.
<br>> ><br>> > Specifically any sort of link error will leave branches/repositories in<br>> > an unrecoverable state if no backup has been taken.<br>><br>> For this particular case, I don't think this is a big problem, because
<br>> you can simple re-upload the code to launchpad. But I understand that in<br>> general is --no-backup a bad idea.<br>><br>> > Further to that some<br>> > upgrades will use the backup as the source for the upgraded data so we
<br>> > may not be able to avoid it per se without changing where we make the<br>> > backup too...<br>><br>> Hmm, it looks like some upgrade tests are missing because no backup<br>> doesn't break any of them. :)
<br><br>Uhm, possibly I was wrong about current code using the backup. Looks<br>like it takes another backup inside the dir; anyhow - that is something<br>that obviously could be fixed.<br><br>The problem with unrecoverability is *much* more important and harder to
<br>solve though.<br><br>Theres no way to tell that a use actually has a local copy - its<br>entirely possible for people to work solely with lightweight checkouts<br>against launchpad, and in this case there is no local copy to re-upload
<br>in the event of failure.<br><br>-Rob<br>--<br>GPG key available at: <<a href="http://www.robertcollins.net/keys.txt">http://www.robertcollins.net/keys.txt</a>>.<br></blockquote></div><br>