Mercurial supports push-style cloning of repositories to remote hosts, however newly cloned repositories don\'t contain working copies. Is there any \'hidden\' option to make me
i have the same problem, and unfortunately there is no simple solution to avoid step 3. mercurial doesn't check out the working copy remotely as "git clone" does, so you will always have this extra step when deploying your html files for the first time, for example.
You can create a hook on the receiving side. Add the following section to your repo/.hg/hgrc
[hooks]
changegroup = hg update
That should do it. Note that hooks are not cloned.
There is no hidden option to force an update of a remote repository. Only one condition determines whether the update is performed (e.g., line 239 of hg.py in the Mercurial 1.0.1 source):
if dest_repo.local():
If you're going to do some work in the working copy, you're going to log in anyway, at which point running "hg update" is pretty easy, so there's not much motivation to relax the current constraint on remote clones.