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> &lt;<a href="mailto:robertc@robertcollins.net">robertc@robertcollins.net</a>&gt; 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>&gt; On St, 2007-07-11 at 01:01 +1000, Robert Collins wrote:<br>&gt; &gt; However --no-backup is really very dangerous; more dangerous than you<br>&gt; &gt; might predict.
<br>&gt; &gt;<br>&gt; &gt; Specifically any sort of link error will leave branches/repositories in<br>&gt; &gt; an unrecoverable state if no backup has been taken.<br>&gt;<br>&gt; For this particular case, I don&#39;t think this is a big problem, because
<br>&gt; you can simple re-upload the code to launchpad. But I understand that in<br>&gt; general is --no-backup a bad idea.<br>&gt;<br>&gt; &gt; Further to that some<br>&gt; &gt; upgrades will use the backup as the source for the upgraded data so we
<br>&gt; &gt; may not be able to avoid it per se without changing where we make the<br>&gt; &gt; backup too...<br>&gt;<br>&gt; Hmm, it looks like some upgrade tests are missing because no backup<br>&gt; doesn&#39;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: &lt;<a href="http://www.robertcollins.net/keys.txt">http://www.robertcollins.net/keys.txt</a>&gt;.<br></blockquote></div><br>