E
E
Ernest Faizullin2015-11-23 21:35:48
Debian
Ernest Faizullin, 2015-11-23 21:35:48

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

1 answer(s)
E
Ernest Faizullin, 2015-11-24
@erniesto77

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

Working 100%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question