Cloning mercurial repo to the remote host

后端 未结 3 1899
自闭症患者
自闭症患者 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:34

    There is no hidden option to force an update of a remote repository. Only one condition determines whether the update is performed (e.g., line 239 of hg.py in the Mercurial 1.0.1 source):

    if dest_repo.local():
    

    If you're going to do some work in the working copy, you're going to log in anyway, at which point running "hg update" is pretty easy, so there's not much motivation to relax the current constraint on remote clones.

提交回复
热议问题