Search code examples
mercurialhookcommitmercurial-hook

Mercurial Repository - Automatic daily hg add/hg commit command on server


I have a web server which is using mercurial as the repository. Every day, we have files being written by applications to our server and I want these to be reflected in the repository. Is there a way to add an automated 'hg add' and 'hg commit' command that runs every day so these files are kept track of and can be "pulled" by our developers on their machines?

Thanks for any help!


Solution

  • scheduling tasks is not a job for mercurial. see crontab or Scheduled Tasks depending on your OS.