Little hack to web service

Paul Boddie paul.boddie at biotek.uio.no
Thu Oct 11 15:12:20 UTC 2012


On 11/10/12 16:15, Lester Caine wrote:
> Paul Boddie wrote:
>> Are you saying that you don't want the subrepositories to always 
>> appear next to
>> the parent repositories?
>
> A little difference here is that the .hgsub is created via the latest 
> hggit clone from a github superproject, so there is still some work to 
> be done here. TortoiseHg is displaying a list of subrepos, but you 
> can't do anything with them ... MercurialEclipse I can trick by 
> dropping the .hg folder from a clean clone of each subdirectory ... 
> and it's this 'tree' that I'm using with hgweb.

So if I understand you correctly, you have a checkout of a repository 
like "bitweaver3" but you remove the .hg directories from the 
subrepositories so that they won't appear in hgweb?

> http://lsces.org.uk/hg/bitweaver3/file is the top directory, and
>
> http://lsces.org.uk/hg/bitweaver3/file/7939d69035a0/.hgsub is the list 
> of directories below the root...
>
> http://lsces.org.uk/hg/Bitweaver%20Mirror%20Repository/ being the 
> 'detail'
>
> As long as there isn't a 'superproject' repository in the top level, 
> the folding seems to work, which is how I've got some of 
> http://lsces.org.uk/hg/ working at the moment.

Because if there was a "superproject" in the top level - "bitweaver3" 
being such a "superproject" - then without removing .hg directories from 
subrepositories all those subrepositories would also appear at the top 
level?

> ?The correct setting is ....
> descend = True
> collapse = True
>
> but should I have /** where the 'project' is a sub repo tree?

I think that you should maybe use only * where you want to hide 
subrepositories because descend mode doesn't affect subrepository 
exposure. See the Wiki for a hopefully not too confusing summary:

http://mercurial.selenic.com/wiki/PublishingRepositories#The_descend_setting

Paul



More information about the Mercurial mailing list