hgweb repository urls (hgweb internals)

Andrey Stelmashenko ya-tam at hawaiian.org.ua
Mon Mar 5 14:41:28 CST 2012


Hello, mercurial developers

My name is Andrey and I work on opensource project hGate which web
interface for configuring mercurial.
More here: https://bitbucket.org/shedar/hgate/wiki/Home
It is a tool for adding/changing repositories, groups, users etc. when
using hgweb.

Now I work on a feature of adding to web interface links to hgweb
repositories pages. I interested in how does hgweb forms urls for single
repositories, repositories in groups, repositories in collections.

Looking to hgweb I see url are formed like:
repository:   <domain>/[baseurl/]repository_name
repository in group:   <domain>/[baseurl/]group_name/repository_name
repository in collection:
 <domain>/[baseurl/]collection_path/repository_name

But I`m not sure in the above urls. Please tell me if there is api to get
url by repository name (group/collection), if there is no such api please
tell me what source file to look into to get understand how mercurial forms
urls to repositories for hgweb.

-- 
Sincerely,

Andrey Stelmashenko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120305/6ffb0342/attachment.html>


More information about the Mercurial-devel mailing list