Answer the question
In order to leave comments, you need to log in
How to do hg update there after pushing to a remote server?
Hi all.
I want to ensure that after pushing to a remote server, the contents of the files are updated and the changes can be seen on the test site in "live mode". But in order for the files on the server to be updated, every time after pushing, you have to go to the server and manually execute hg update.
How can I make push changes take effect immediately?
Tried to add "changegroup = hg update" to hooks, but no change.
hgrc content:
[paths]
default = https://erniesto77:******@bitbucket.org/asapogov/fastorlab
default-push = ssh://[email protected]//var/www/fastorlab
[tortoisehg]
postpull = update
defaultpush = branch
confirmpush = True
cipushafter = default
[hooks]
changegroup = hg update
Answer the question
In order to leave comments, you need to log in
It's decided. It was necessary to add a hook on the server side , and not on my own). If someone has such a problem, then add these 2 lines in the remote repo in the .hg / hgrc file
[hooks]
changegroup = hg update >&2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question