Starting a non-repo'ed SSH server

Anthony Lalande Anthony.Lalande at jeppesen.com
Thu Nov 3 15:56:54 CDT 2011


Hi all,

I am currently working on a Mercurial extension that implements package management in Mercurial repositories. (Think of it as subrepos with dependencies, or some kind of blend of aptitude and hg). I am building this extension to work with Mercurial 1.9, and perhaps 2.0 in the near future.

I have run into a programming problem which I'm not sure how to solve; perhaps someone on this list can enlighten me...

I would like my extension to enhance the built-in SSH server, so that a client with my extension installed could connect to a server (also with the extension installed), and retrieve a list of available packages. To do this, I would follow the standard pattern of connecting to a remote server via SSH, and issuing the command `hg serve --stdio`.

However, the problem that I'm running into is that all of the internals of the `hg serve --stdio` command expect the server to be started with a specific repository to serve. In the case of connecting to a server to retrieve a list of packages, I don't have a single repository object that I can use to start the server.


My question is: does anyone have ideas as to how I can extend the built-in server, using as much of the core Mercurial server code as possible?

Thanks in advance,
- A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20111103/697ca3ae/attachment.html>


More information about the Mercurial-devel mailing list