<br><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 7:05 PM, Andrew Bennetts <span dir="ltr"><<a href="mailto:andrew@bemusement.org" target="_blank">andrew@bemusement.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">Bob Tanner wrote:<br>
> Lets say I have a repo that looks like this:<br>
</div>[snip]<br>
<div class="im">><br>
> Is there a way I can just branch everything EXCEPT the tests directory?<br>
><br>
> I'd like to open source the code but not release private information<br>
> that is stored in the tests.<br>
><br>
> IF bzr cannot do this I was just going to make a new repo, copy the<br>
> a.py to l.py code into that repo, bzr commit it, then push it to<br>
> launchpad.<br>
<br></div></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
</div>Short answer: no, bzr cannot do this.  Make a new history, either the<br>
way you suggest or via the fastimport plugin (which can filter out<br>
paths).<br>
<br>
The problem is bzr versions trees, not individual files, so doing what<br>
you ask in bzr's model amounts to rewriting history.  So starting fresh<br>
with no history (as you suggest), or rewriting history (using a tool<br>
like bzr-fastimport), are your only good options.</blockquote><div><br></div><div><br></div><div>So just to get this clear for myself, "bzr split tests" would accomplish</div><div>part of the job - turning the tests tree into a separate branch in place,</div>

<div>at which point you could arrange to push up the original tree, without</div><div>the now independent tests tree, BUT... history is preserved for the original </div><div>tree, so a recipient could still reconstruct past versions of the private</div>

<div>files that were in tests before the split.  Is that right?</div><div><br></div><div><br></div></div>