Mercurial and TortoiseHG - Update remote repository after pushing changes

安稳与你 提交于 2019-12-10 03:52:26

问题


When pushing changes to a remote repository, is it not possible to automatically run update there so the changes/files are available?


回答1:


Use changegroup hook on the remote side, as described in the Mercurial FAQ.




回答2:


Edit .hg/hgrc on the remote repository and add:

[hooks]
changegroup.UpdateOnPush = hg update


来源:https://stackoverflow.com/questions/6924143/mercurial-and-tortoisehg-update-remote-repository-after-pushing-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!