[manual index][section index]

NAME

hg/websrv - serve mercurial http pull protocol

SYNOPSIS

hg/websrv [ -d ] [ -u baseurl ] root [ repo1 ... ]

DESCRIPTION

Websrv serves the mercurial pull protocol over http. This protocol helps pull updates from a remote mercurial repository with few requests and in a bandwidth-efficient manner. The mercurial repositories in root are served. This is typically /n/hg containing one or more mounted hg/fs'es. If no explicit repositories to allow are specified, all repositories are allowed. Http access from browsers get a message that there is no html front-end, option -u can change this.

Options:


-d
Print debugging information.
-u baseurl
In responses to browsers, mention that a html front-end exists at the concatenation of baseurl and the repository name.

EXAMPLES

Start a web server to serve the repositories in /n/hg.
ip/shttpd -c / {hg/websrv -d /n/hg} GET .

SOURCE

/appl/cmd/cgi/websrv.b
/appl/lib/mercurial.b
/appl/lib/mercurialwire.b

SEE ALSO

hgfs(4)

BUGS

Pushing changes to the server is not (yet) implemented.
The "unbundle" and "stream_out" commands are not implemented.

hgwebsrv(8 ) Rev:  Wed Feb 22 04:14:06 GMT 2023