Changing Mercurial “Default” Parent URL

前端 未结 3 1632
无人共我
无人共我 2020-12-04 10:09

Let\'s say I have a Mercurial repository and I\'m pulling from a default parent URL (the source I cloned it from).

Now I want to change the default parent URL (hostn

3条回答
  •  时光说笑
    2020-12-04 10:44

    You can even add multiple entries in the [paths] section of your .hg/hgrc file.

    [paths]
    default = /repo_store/hg/project1
    sandbox = /repo_store/hg/project1_experimental
    

    And then can specify its alias in the mercurial commands. default repo need not be specified but others have to be like,

    hg in            # check incoming changes from default repo
    hg in default    # check incoming changes from default repo
    hg in sandbox    # check incoming changes from sandbox repo
    hg pull sandbox  # pull changes from sandbox repo
    

提交回复
热议问题