hgsubversion is an extension for Mercurial that allows using Mercurial as a Subversion client. Although hgsubversion will work with SWIG bindings provided with Subversion, it is recommended to install subvertpy (available at SBo).