Any way to 'hg push' and have an automatic 'hg update' on the remote server?
Giorgos Keramidas
keramida at ceid.upatras.gr
Sat Jul 7 20:25:30 CDT 2007
On 2007-07-06 18:04, Matt Culbreth <mattculbreth at gmail.com> wrote:
> Hello Group,
>
> I've got a simple setup with three developers working on their local
> machines. We each use Mercurial. I'd like to have each developer push to a
> repository on a common server we have.
>
> At the moment this works by doing an 'hg push ssh://<server info>" but we
> then have to do an SSH into the server and do an 'hg update' in that
> repository to see the changes. Is there any setting which allows for an
> automatic update on the server side? Should I be using export or bundle
> instead perhaps?
You don't need a `working copy' on the server, to host a repository.
If you just have the `repo/.hg/**' files, then you have a full clone
of the entire repository.
If you need server-side copies to include a `working copy', then you
can set up a cron job to run `hg update -C' or clone/pull+update the
official repository in its `deployment' location.
More information about the Mercurial
mailing list