Forest? Branches? And other beginner questions...

Chris Quenelle Chris.Quenelle at Sun.COM
Thu Mar 29 01:55:58 UTC 2007



Matt Mackall wrote:
> I suppose if we were clever, we could come up with some sensible
> forest-like semantics that just transparently worked. Making this work
> smoothly would be interesting. Things like log at the top level would
> be hard-pressed to deal with logs of nested repos. Bears some thought.


Interesting.  The outermost repo could store the name/hash of the
inner repos (instead of putting it a separate snapshot file).
When using 'update', the inner repos could be set to the
revision that is appropriate for that specific outer revision.

Basically I think you'd want a global hg option named "-r"
that causes any operation to applied recursively.

The key thing is that the relationship between the content/source-code
of an inner repo, and the hash-id of the outer repo is broken.
So I can add a new rev to an inner repo without affecting the
meta-data of the outer repo.

--chris




More information about the Mercurial mailing list