Search code examples
mercurialdvcsrhodecode

Generate authentication code for accessing Mercurial


I'm installing a Mercurial server for managing source code and found RhodeCode. It's quite good for me. However, I'd like to have a feature which is similar to Google Code, in which a user can generate an authentication code for accessing source control from Mercurial client. Is there any other Mercurial server can do that or is there any built-in feature of RhodeCode that I didn't know?

Thanks


Solution

  • No, that feature doesn't exist currently: neither RhodeCode/Kallithea nor hgweb supports it.

    The closest to this is probably RhodeCode and Kallithea's support for an API key. The key is private for a given user, but using the key it's possible to trigger events in RhodeCode from scripts. It wont let you run

    hg clone http://hg.server/foo?key=123
    

    so it's not exactly what you want. I'm sure Kallithea could be extended to do it, though, as can hgweb.