[issue2211] [hg serve] Add a link to the parent and top folders when hg serve is in "webdir" mode

didlybom bugs at mercurial.selenic.com
Mon May 24 10:27:25 UTC 2010


New submission from didlybom <didlybom at gmail.com>:

When you run hg serv with the "--webdir-conf" command line argument and you
access the mercurial http server address through a web browser you get a
list of all the repositories that are being served.

If then you click on one of the repository names you get to the
corresponding "individual" repository web page.

However, there is no easy way to go back to the "top" repository list page
from those "individual" repository web pages. The only way to go back to the
main page seems to be to either use the "back" button in your web browser or
type the hg server address on the web browser address bar.

It would be great if a link to the top repository list web page was added to
the individual repositories.

Actually, since the "title" of these individual repository pages is already
the path to the selected repository, it would be nice if this title was
clickable so that you could navigate to any folder that contains mercurial
repositories that are being served by the hg server.

For instance, if you were serving the following 4 repositories:

folder1/repository1
folder1/subfolder1/repository11
folder1/subfolder1/repository12
folder2/repository2

The main repository list page would show links to those 4 repositories.
Clicking on any of them would give you to the corresponding individual
repository. For example, clicking on "folder1/subfolder1/repository12" would
send you to its web page, whose title could be:

"top / folder1 / subfolder1 / repository12"

In there, clicking on "top" (or a similar name) would take you back to the
main repository list. In addition, clicking on "folder1" could show you a
list of the repositories that are inside the folder named "foder1". In the
example you would get the following list of repositories:

folder1/repository1
folder1/subfolder1/repository11
folder1/subfolder1/repository12

That is, it would not show "folder2/repository2". The title of this list
could be "top / folder1", which would let the user browse further up the
repository tree.

I think that this change would make using the hg web server much more usable
with multiple repositories.

----------
messages: 12657
nosy: didlybom
priority: feature
status: unread
title: [hg serve] Add a link to the parent and top folders when hg serve is in "webdir" mode

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


More information about the Mercurial-devel mailing list