For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Tracking etc in Mercurial

Tracking etc in Mercurial

Created by dave. Last edited by dave, 11 years and 47 days ago. Viewed 3,533 times. #3
[diff] [history] [edit] [rdf]
(9 October 2012)

This is for CentOS.

Set up root's .hgrc

Set up /etc/.hgignore


Initial commit:

[root@sawmill ~]# cd /etc
[root@sawmill etc]# hg init .
[root@sawmill etc]# hg status | awk '{print $2}' | xargs hg add
[root@sawmill etc]# hg commit -m "Initial commit"

I set up a cron job to check that uncommitted changes are not piling up:

  for i in /etc /var/named ; do
    cd $i
    echo -- Checking: $i
    hg status
) | mail -s "$HOSTNAME conf report" me@mysystem
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt