summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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