Mercurial hook not executing properly

后端 未结 9 1421
北恋
北恋 2020-12-30 12:02

This should be a very simple thing to have run, but for some reason it won\'t work with my Mercurial repository. All I want is for the remote repo to automatically run

9条回答
  •  悲&欢浪女
    2020-12-30 12:51

    I had the same problem pushing from Windows Eclipse via http, but after capturing stderr, I found that the full path was needed to the hg.bat file. My hooks section now looks like:

    [hooks]
    incoming = c:\Python27\Scripts\hg.bat update > hg_log.txt 2>>hg_err.txt
    

    Hope this helps someone else. SteveT

提交回复
热议问题