开发者

How to set the default push/pull repository from TortoiseHG

开发者 https://www.devze.com 2023-01-28 06:14 出处:网络
For one of my repositories, it doesn\'t remember the name of the repository I am pulling and pushing to. I don\'t have this prob开发者_StackOverflow中文版lem with any of the other repositories on my m

For one of my repositories, it doesn't remember the name of the repository I am pulling and pushing to. I don't have this prob开发者_StackOverflow中文版lem with any of the other repositories on my machine. Is their any way to fix this?


In the .hg folder for the repository with a problem, create or edit hgrc and add:

[paths]
default = path\to\default\push

or from TortoiseHg (1.1.6 for me), go to the Synchronize dialog and click Configure (or just go directly to repository settings and the Synchronize item) and add an alias of "default" with the correct path for your default push/pull repository.


As of version 3.0 there is no "setting" for choosing the default URL. Instead you must create an alias of "default" for the URL that you want.

To do so, from workbench, right click on the repository and select settings. Click Edit File and add a line (see below) that specifies the default path to the desired repository.

default = URL of repository
0

精彩评论

暂无评论...
验证码 换一张
取 消