[test] add unit tests for ruleset
We extract the rules building logic from readfile into a Ruleset.buildrules()
method to ease testing.
usr/share/mercurial-server
usr/share/mercurial-server/init
usr/share/mercurial-server/mercurialserver
usr/share/doc/mercurial-server
etc/mercurial-server
etc/mercurial-server/remote-hgrc.d
etc/mercurial-server/keys
etc/mercurial-server/keys/root
etc/mercurial-server/keys/users