grim/hgkeeper

Parents 4abcd7233768
Children 67d976e7c7d1
Add an HGK_REPOSITORY environment variable containing the relative path to the repository when running hg commands
  • +1 -0
    hg/hg.go
  • --- a/hg/hg.go Thu Oct 28 02:15:42 2021 -0500
    +++ b/hg/hg.go Thu Oct 28 06:18:36 2021 -0500
    @@ -39,6 +39,7 @@
    c.cmd.Env = append(
    os.Environ(),
    "HGRCPATH="+strings.Join(rcs, string(filepath.ListSeparator)),
    + "HGK_REPOSITORY="+repoName,
    "HGK_USERNAME="+username,
    )