Branching from just a part of a repository?
Wichmann, Mats D
mats.d.wichmann at intel.com
Thu Aug 30 03:28:26 UTC 2012
On Wed, Aug 29, 2012 at 7:05 PM, Andrew Bennetts <andrew at bemusement.org>wrote:
> Bob Tanner wrote:
> > Lets say I have a repo that looks like this:
> [snip]
> >
> > Is there a way I can just branch everything EXCEPT the tests directory?
> >
> > I'd like to open source the code but not release private information
> > that is stored in the tests.
> >
> > IF bzr cannot do this I was just going to make a new repo, copy the
> > a.py to l.py code into that repo, bzr commit it, then push it to
> > launchpad.
>
>
> Short answer: no, bzr cannot do this. Make a new history, either the
> way you suggest or via the fastimport plugin (which can filter out
> paths).
>
> The problem is bzr versions trees, not individual files, so doing what
> you ask in bzr's model amounts to rewriting history. So starting fresh
> with no history (as you suggest), or rewriting history (using a tool
> like bzr-fastimport), are your only good options.
So just to get this clear for myself, "bzr split tests" would accomplish
part of the job - turning the tests tree into a separate branch in place,
at which point you could arrange to push up the original tree, without
the now independent tests tree, BUT... history is preserved for the
original
tree, so a recipient could still reconstruct past versions of the private
files that were in tests before the split. Is that right?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20120829/298eab9a/attachment.html>
More information about the bazaar
mailing list