[test] add unit tests for ruleset
We extract the rules building logic from readfile into a Ruleset.buildrules()
method to ease testing.
Template: mercurial-server/purge_repositoriesType: booleanDefault: false_Description: Do you want the repositories to be removed when mercurial-server is purged?