Branching from just a part of a repository?

Vincent Ladeuil vila+bzr at canonical.com
Fri Aug 31 07:53:16 UTC 2012


>>>>> Stefan Monnier <monnier at iro.umontreal.ca> writes:

    >> 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

    > You could probably still support such a feature with Bzr's model using
    > an approach similar to the "ghost revisions" or the stacked branches:
    > you'd copy the branch to a new repository with the same revids and
    > fileids, but where some fileids would be like dangling references, so
    > that repository would not let you view the complete branch.

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

What is really missing indeed is a better way to play around with ghost
revisions including the ability to control which revisions can be moved
from one repository to the other.

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.

       Vincent



More information about the bazaar mailing list