Using sub-repo with hgwebdir difficulties in mercurial

Posted by Ton on Stack Overflow See other posts from Stack Overflow or by Ton
Published on 2010-05-27T21:02:30Z Indexed on 2011/01/06 1:53 UTC
Read the original article Hit count: 449

Filed under:
|

Allright I got myself in a deadlock with Mercurial and sub-repos... Here's what happenend: I had a large mercurial repo that I server via apache and hgweb.cgi. Due to the size of the repo I decided to move to sub-repositories and share these with hgwebdir.cgi.

Using the convert tool with the filemap option I created several sub-repositories:

/main/foo
/main/bar

Nicely created an entry for the sub-repositories in .hgsub:

foo = foo
bar = bar

And set hgwebdir.cgi up to show $/** as the root folder.

Now when I went to my site (foo.com/hg) I saw my sub-repositories with one empty reposory among them (no name, no content), but I could not download it (archive location unknown): empty_repo

That was allright until I added a new sub-repository. I could not push the new .hgsub file to foo.com/hg, since that page is served by hgwebdir.

The only method I can work currently is switch from hgwebdir to hgweb, commit .hgsubste and switch back to hgwebdir.

Does someone have a good setup for such a mess?

© Stack Overflow or respective owner

Related posts about apache

Related posts about mercurial