Search code examples
mercurialrepositorytortoisehg

MercurialHG and TortoiseHG code repository origin


I'm quite new to Mercurial and Tortoise and am trying to find the origin (repository) of a particular project that I have on one of our servers. Can anyone tell me where this very useful nugget of information is found in the interface, please?


Solution

  • Typically, when a repo is cloned, the default repo is set in the [paths] section of the hgrc file. Here's how you can see those paths:

    1. Right click on the repo in the Tortoise's Repository Registry
    2. Select settings
    3. On the settings tab for the repo, click Edit File
    4. In the [paths] section, there should be a default= entry

    Please note: that file is editable and may no longer reflect from where that instance was cloned. This is akin to looking at a file in your file system: you have no record of the historical provenance.