SvnHg is a command-line tool to convert from a Subversion repository to a Mercurial one, preserving the whole history of the repository.