Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 975
Casebash Avatar asked Dec 01 '10 03:12

Casebash


People also ask

How to merge Tortoise hg?

From the revision history viewer (TortoiseHg ‣ Workbench or thg log) open the context menu over the changeset which you want to merge and select Merge with local…. Finally, in the merge dialog, press Merge and then Commit.

How do you commit in TortoiseHg?

Once all the conflicts are resolved you can close TortoiseHg's resolve conflicts dialog and click next on the merge window. On this next screen you can enter the commit message and then click Commit Now . You are now done.

What is TortoiseHg used for?

TortoiseHg is a set of graphical tools and a shell extension for the Mercurial distributed revision control system. On Windows, TortoiseHg consists of a shell extension, which provides overlay icons and context menus in your file explorer, and a command line program named thg.exe which can launch the TortoiseHg tools.


2 Answers

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.

like image 174
Mark Tolonen Avatar answered Nov 15 '22 10:11

Mark Tolonen


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
like image 37
Tom Hubbard Avatar answered Nov 15 '22 10:11

Tom Hubbard