summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-28 13:55:50 -0400
committerJoey Hess <joey@kitenet.net>2010-05-28 13:55:50 -0400
commitdc31f0c567be98d2d497da93e53fa0c010058658 (patch)
treeee87a05c24ef1afe867f7c1affb433ba46cb77b0
parent508b728d3d336ce344be7be56cc6267c16b8b596 (diff)
hg: Set HGUSER (if not already set) to avoid warning message when committing. Closes: #533298
-rwxr-xr-xcommit.d/50vcs-commit3
-rw-r--r--debian/changelog2
2 files changed, 5 insertions, 0 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit
index 69cfd6b..7318a46 100755
--- a/commit.d/50vcs-commit
+++ b/commit.d/50vcs-commit
@@ -49,6 +49,9 @@ elif [ "$VCS" = hg ] && [ -d .hg ]; then
if [ -n "$USER" ]; then
export LOGNAME="$USER"
fi
+ if [ -n "$HGUSER" ]; then
+ export HGUSER="$USER@$hostname"
+ fi
if [ -n "$logfile" ]; then
hg commit $HG_COMMIT_OPTIONS -l "$logfile"
else
diff --git a/debian/changelog b/debian/changelog
index f044ead..0e04b69 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ etckeeper (0.47) UNRELEASED; urgency=low
* Set HOME=~root so that VCS like bzr that write to the home
directory when run by etckeeper do not drop root-owned files
in user home directory when sudo etckeeper is run. Closes: #583581
+ * hg: Set HGUSER (if not already set) to avoid warning message when
+ committing. Closes: #533298
-- Joey Hess <joeyh@debian.org> Fri, 28 May 2010 13:33:44 -0400