[issue1884] non-repo subfolders in web interface index when descend=false

Stephen Moore bugs at mercurial.selenic.com
Sun Oct 25 08:37:41 UTC 2009


New submission from Stephen Moore <delfick755 at gmail.com>:

When using descend = false under the [web] section with hgwebdir.cgi,
non-repo subfolders are not shown in the web interface's index.

For example. Let's say we have a folder heirarchy :

hgRepositories/
    uni/
        2009/
            sem1/
                *unit1/
                *unit2/ 
            sem2/
                *unit3/

(where names prepended by a star are repositories)

Then say we set the hgRepositories as a collection location, and descend =
false. And for the purposes of my example below, the url to the cgi script
is http://hg.

Once we get to a folder that does have repos in it (in this case
http://hg/uni/2009/sem1) then it does show the repos

however if we're in a folder that only has non-repo folders in it, nothing
is displayed.

Imho it is desirable to show these non-repo folders in the index (as long as
they have a repo as a child somewhere down the line).

So in this case :
http://hg  would show "uni"
http://hg/uni would show "2009"
http://hg/uni/2009 would show "sem1", "sem2"
etc

.....

----------
messages: 10831
nosy: delfick
priority: bug
status: unread
title: non-repo subfolders in web interface index when descend=false

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1884>
____________________________________________________



More information about the Mercurial-devel mailing list