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, 5 years and 337 days ago. Viewed 2,001 times. #3
[diff] [history] [edit] [rdf]
labels
attachments
(9 October 2012)

This is for CentOS.

Set up root's .hgrc

Set up /etc/.hgignore

prelink.cache
blkid/blkid.tab*
modprobe.conf~
rc.d/*/*

Initial commit:

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

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

#!/bin/bash
(
  for i in /etc /var/named ; do
    cd $i
    echo -- Checking: $i
    hg status
  done
) | 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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt