Cloning mercurial repo to the remote host

后端 未结 3 1992
自闭症患者
自闭症患者 2021-02-13 16:28

Mercurial supports push-style cloning of repositories to remote hosts, however newly cloned repositories don\'t contain working copies. Is there any \'hidden\' option to make me

3条回答
  •  耶瑟儿~
    2021-02-13 17:16

    You can create a hook on the receiving side. Add the following section to your repo/.hg/hgrc

    [hooks]
    changegroup = hg update
    

    That should do it. Note that hooks are not cloned.

提交回复
热议问题