Skip to content

Commit

Permalink
hg: Set HGUSER (if not already set) to avoid warning message when com…
Browse files Browse the repository at this point in the history
…mitting. Closes: #533298
  • Loading branch information
joeyh committed May 28, 2010
1 parent 508b728 commit dc31f0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commit.d/50vcs-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dc31f0c

Please sign in to comment.