Branching from just a part of a repository?

Stefan Monnier monnier at iro.umontreal.ca
Fri Aug 31 13:16:11 UTC 2012


> Ghost revisions will be enough as long as the (file-id, revision-id)
> full texts are available (which should already be supported).

But that would hide the history of non-hidden files.
Committing the files into a fresh new branch already gives you that.

> I.e. for this use case, you need a way to 'blacklist' all revisions
> before the split and some way (a bit more tricky) to forbid (or control)
> files outside of the split to come back.

If you really only want to hide some "tail" of the history, you can
already do that: make a stacked branch and keep the tail of the
branch secret (so any attempt to fetch some earlier part of history
would simply get something like a network error).


        Stefan



More information about the bazaar mailing list