ForestExtension question + wiki cleanup request

Kelly O'Hair Kelly.Ohair at Sun.COM
Wed Mar 4 11:50:04 CST 2009


You said
   'to keep our build system repo in sync  across the "main" repositories'
Not sure what you mean by that. The forest extension is to help
manage nested repositories, not sure I see I understand your 'sync' comment.

---

See http://www.selenic.com/mercurial/wiki/index.cgi/NestedRepositories

I work on several projects that have forests or nested repositories.
We use the latest forest extension from
   http://bitbucket.org/pmezard/hgforest-crew/overview/
Probably hundreds of users. It works fine, but I'm looking forward
to the NestedRepositories work.

The biggest advantage to forest.py is the fclone, and that is often
the hardest thing to get a Mercurial server to do right.
You can create a forest with separate clone commands, and get the
same result.

Otherwise the rest of the commands are often just ways to do a loop
over all the repositories, which you could do with:
    for h in `find . -name .hg -type d` ; do
      (cd $h/.. && hg COMMAND )
    done
(Although there is more to it than that in some cases).

It has been our experience that most developers work in one or two
repositories, but may need the entire forest to verify changes work.
So after the fclone, and an occasional fpull -u, the rest of the forest
commands are more rarely needed or used.

To us, forests or nested repositories are essential, but I would
be careful to go this route too quickly, if a single repository
is an option, I'd recommend using a single repository.

-kto

Marcus Lindblom wrote:
> Hi,
> 
> We've been using Mercurial for a few months and it's working great, but 
> now I need something like Forest to keep our build system repo in sync 
> across the "main" repositories. Is that a good way to do it or does it 
> cause more problems than solutions?
> 
> Also, when I read the wiki page I found a lot of ToDo-lines with more or 
> less alarming questions and statements that someone has added:
> 
> http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtension
> 
> A quick cleanup and update would be much appreciated, as I'm sure many 
> of these additional statements are quickly settled. Is there anything I 
> could to do help there?
> 
> Also, is Forest (the hg-crew compat version) usable in general? Ppl seem 
> to be using it, but what are the snags?
> 
> Cheers,
> /Marcus
> 
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial


More information about the Mercurial mailing list