rust: implement conversion of RevlogError into HgError...
rust: implement conversion of RevlogError into HgError
The conversion already exists in rhg, where we need to convert
to CommandError. This commit moves it to hg core.
This makes it easier to code some middleware where we need to carry
around a type that represents any type of hg error (HgError).