Casebash
Casebash

Reputation: 118742

How to set the default push/pull repository from TortoiseHG

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 problem with any of the other repositories on my machine. Is their any way to fix this?

Upvotes: 6

Views: 4871

Answers (2)

Tom Hubbard
Tom Hubbard

Reputation: 16119

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

Upvotes: 7

Mark Tolonen
Mark Tolonen

Reputation: 177396

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.

Upvotes: 13

Related Questions