TortoiseHG Sync - How to save URL

reach4thelasers picture reach4thelasers · Mar 30, 2012 · Viewed 8.9k times · Source

I've recently migrated to Mercurial for source control and am using TortoiseHG. Everything is working great, but whenever I go to "Synchronize" to do a push, the remote repository URL is blank and I need to type it in every time. How do I save it so that the remote repository source is saved?

Answer

Tim Henigan picture Tim Henigan · Mar 30, 2012

You did not mention which version of TortoiseHg, but there are two "standard" ways to save the URL:

1) Manually add the following lines to your <project_dir>\.hg\hgrc file:

[paths]
  default = http://server/path/to/remote/repo

2) Click the "Save" icon in TortoiseHg's Sync view: TortoiseHg Sync screenshot