Low-level Mercurial (hg) network client in Ruby