<html><body bgcolor="#FFFFFF"><div>Just to add...<br><br>- Scott</div><div><br>On 21 Mar 2010, at 11:53 AM, Jelmer Vernooij &lt;<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt; wrote:<br></div><blockquote type="cite"><div><span class="Apple-style-span" style="color: rgb(0, 0, 0);">(snip)<br></span><blockquote type="cite"><span>I'm also curious about what makes up these branches. &nbsp;All the</span><br></blockquote><blockquote type="cite"><span>revisions/data for the branches are stored in the shared repo, but is</span><br></blockquote><blockquote type="cite"><span>there a way to discover/list the branches that exist within the repo</span><br></blockquote><blockquote type="cite"><span>itself. &nbsp;Or is the data stored in the branch directories important in</span><br></blockquote><blockquote type="cite"><span>retrieving the appropriate data out of the repo? &nbsp;&nbsp;&nbsp;Hmmmm... I don't</span><br></blockquote><blockquote type="cite"><span>know if I've explained that well .... put another way ... if I delete</span><br></blockquote><blockquote type="cite"><span>a branch directory, is there anyway to recover the branch from the</span><br></blockquote><blockquote type="cite"><span>data stored in the repository alone?</span><br></blockquote><span>The repository is what stores the actual revisions. A repository can be</span><br><span>colocated with a branch or be higher up in the filesystem (a shared</span><br><span>repository). bzr-svn creates shared repositories by default unless you</span><br><span>specify --standalone. "bzr info" will tell you the location of the</span><br><span>repository that's being used by a particular branch.</span><br><span></span><br><span>The branch is mainly just a pointer to a revision in the repository.</span><br><blockquote type="cite"><span class="Apple-style-span" style="color: rgb(0, 35, 163);"><span class="Apple-style-span" style="color: rgb(0, 80, 1);"><span class="Apple-style-span" style="color: rgb(0, 35, 163);">(snip)</span></span></span></blockquote></div></blockquote><br><div>I don't think this fully answer the OP's question.</div><div><br></div><div>The answer is (AFAIK)that if you accidentally deleted a branch, the only way the recreate that is from another branch that contains that revision already. So, if you only have one branch storing it's revisions in a shared repo, then you delete that branch, AFAIK you cannot bring that branch back from just the revision only<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">, certainly not using the standard bzr commands.</span></div><div><br></div><div>If you had two branches, one branched from the other, then as long as the revision existed in the other branch, either by ancestry or because it had been merged in, the doing</div><div><br></div><div>Bzr branch -r &lt;revno&gt; &lt;nonDeletedBranch&gt; &lt;deletedBranch&gt;<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656); "></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.285156); -webkit-composition-fill-color: rgba(175, 192, 227, 0.21875); -webkit-composition-frame-color: rgba(77, 128, 180, 0.21875);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656); ">Would recreate it in it's entirety. revno can be dotted form from a merge.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.285156); -webkit-composition-fill-color: rgba(175, 192, 227, 0.21875); -webkit-composition-frame-color: rgba(77, 128, 180, 0.21875);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656); ">I may be wrong, but I've never found a way to do above without the revision existing in a branch somewhere.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.285156); -webkit-composition-fill-color: rgba(175, 192, 227, 0.21875); -webkit-composition-frame-color: rgba(77, 128, 180, 0.21875);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656); ">- Scott&nbsp;</span></div></body></html>