subrepo grand plan

Dominik Psenner dpsenner at gmail.com
Thu Oct 20 08:06:08 CDT 2011


d) make commit subrepo aware

This may sound silly, but as far as I understood subrepositories, a parent
repository tracks subsets of its subrepository changeset hashes. Shouldn't
commit to a parent repo then behave like this?

Assuming to have following repositories:

P := parent repo
A := subrepo A
B := subrepo B

A commit to the parent repository P executes:

hg commit A # commit file changes
hg commit B # commit file changes
cat tip(A) > .hgsubstate
cat tip(B) >> .hgsubstate
hg commit P # commit new head with valid hash subset and file changes

Cheers,
Dominik



More information about the Mercurial-devel mailing list