推送到远程服务器后做一个"hg update"?

After pushing to a remote server to do a "hg update"?

每次推送到远程仓库后,我都必须连接到远程服务器并手动 运行 "hg update"。如何避免,并使其自动模式?

在一个类似的问题中,决定将此行添加到 hgrc

[hooks] 
changegroup = hg update >&2

但这对我没有帮助。

这是我的 hgrc 文件现在的样子:

[paths]
default = https://erniesto77:******@bitbucket.org/asapogov/fastorlab
default-push = ssh://root@193.124.50.21//var/www/fastorlab

[tortoisehg]
postpull = update
confirmpush = True

[hooks]
changegroup = hg update >&2

已解决。感谢Reimer Behrends

The original answer should be correct, but the hook has to be added to the server-side repository's