grim/hgkeeper
Clone
Summary
Browse
Changes
Graph
Add an HGK_REPOSITORY environment variable containing the relative path to the repository when running hg commands
2021-10-28, Gary Kramlich
b3b134a272ad
Parents
4abcd7233768
Children
67d976e7c7d1
Add an HGK_REPOSITORY environment variable containing the relative path to the repository when running hg commands
1 files changed, 1 insertions(+), 0 deletions(-)
+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,
)