Package: etckeeper
Version: 0.47ubuntu1
Severity: important

I have a fresh install of Ubuntu (however, etckeeper is a Debian
package, and it doesn't appear to be doing anything Ubuntu specific
here, hence I'm reporting it here. My apologies if this is in error).

I installed Mercurial and etckeeper 0.47, then modified
/etc/etckeeper.conf to set the VCS to "hg".

I ran:
        sudo etckeeper init

then ran:
        sudo etckeeper commit "Initial commit".

This second command failed with:
        abort: no username supplied (see "hg help config")

I created a file /home/victorhooi/.hgrc, and added in it the
appropriate hg [ui]/username section.

I tried to run commit again, and it failed again. I then created a
/root/.hgrc file, and added [ui]/username to this.

The commit was then able to go through. However, it appears that under
Mercurial, commits via etckeeper are logged under root, always, even
if you run it as sudo. This appears to contradict the man page, which
at least in my version states that etckeeper will notice if it is
being run sudo, and log the underlying user.

Any subsequent commits I do with etckeeper seem to use the
/root/.hgrc, as opposed to my user's hgrc file.

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'),
(500, 'maverick')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-8-server (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages etckeeper depends on:
ii  bzr                        2.1.2-1       easy to use distributed version co
ii  debconf [debconf-2.0]      1.5.32ubuntu1 Debian configuration management sy
ii  git [git-core]             1:1.7.1-1     fast, scalable, distributed revisi
ii  git-core                   1:1.7.1-1     fast, scalable, distributed revisi
ii  mercurial                  1.5.4-1       scalable distributed version contr

Versions of packages etckeeper recommends:
ii  cron                   3.0pl1-113ubuntu1 process scheduling daemon
etckeeper suggests no packages.

-- Configuration Files:
/etc/etckeeper/etckeeper.conf changed:
VCS="hg"
GIT_COMMIT_OPTIONS=""
HG_COMMIT_OPTIONS=""
BZR_COMMIT_OPTIONS=""
DARCS_COMMIT_OPTIONS="-a"
HIGHLEVEL_PACKAGE_MANAGER=apt
LOWLEVEL_PACKAGE_MANAGER=dpkg

-- debconf information:
  etckeeper/commit_failed:
  etckeeper/purge: true



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to