I’ve got a few dozen Linux machines running cron and I’d like to put the crontabs in some sort of revision control system. For source control I use Mercurial (hg), so that’d be ideal, but if there’s some other system that is better suited to this task I’d consider it.
One aspect which is specific to my situation is that all the crontabs belong to a common user (not a real person, but a placeholder ‘services’ login). I’d like the revision history to include the actual author of each change, rather than the special account where the cron jobs actually run.
crontab -l dumps your crontab to standard output, which you could redirect to a file. You could have a job (in cron, naturally) to redirect this to a file which is then diffed, and pushed to source control as necessary.