grim/hgkeeper

Changed the policy_effect to the priority model and move the definition of the access function to the policyChanged the policy_effect to the priority model. Also tried to clean up the docs to explain the changel. Also tried to clean up the docs to explain the changes.
package hg
import (
"io/ioutil"
"gopkg.in/ini.v1"
)
func createHgrc(writeable bool) (string, error) {
tmpfile, err := ioutil.TempFile("", "hgkeeper-*.hgrc")
if err != nil {
return "", err
}
hgrc := ini.Empty()
if !writeable {
hooks, err := hgrc.NewSection("hooks")
if err != nil {
return "", err
}
hooks.NewKey("pretxnchangegroup", "/bin/false")
}
if err := hgrc.SaveTo(tmpfile.Name()); err != nil {
return "", err
}
return tmpfile.Name(), nil
}