Skip to content

Golang: parsing Mercurial SSH command and calling local `hg` process

Georges Racinet requested to merge topic/heptapod/hpd-golang into branch/heptapod

Closes #2 (closed) and its sub-issues #4 (closed) and #5 (closed)

This finishes the reimplementation of Mercurial SSH access in Golang. To enable, there is a new "hg" possible command in the list of features (see example provided in config.yml.example)

As we were doing already in the Ruby version, we simply ignore all arguments except the first three ones:

  • the command name, "hg", is used for dispatch to hg.Command
  • the second argument must be "-R"
  • the third argument is the repo path, as seen from the client

Everything else is simply ignored, we don't have more arguments to send to Mercurial, everything happens from there through the wire protocol.

Merge request reports

Loading