Q:

how can i propagate the changes from mercurial to my production web server?

I've a PHP app and i'm using Mercurial as Revision Control.
I want to code a bash script or something like that that help me to update the content of my web server.
I mean, the idea would like to update all the files that i've changed in a changeset (maybe through SCP), to the production server. If i could get the files that had changed (absolute paths) i could make SCP without problems.
Also, a solution would be to get the absolute paths to the files that are printed with hg stat
But that would be before commit.
Any idea?
Thanks a lot!

A:

A couple of options:

Clone a copy of your repository on your web server
Use rsync to keep your web server directories in sync with a repository on a separate server

