Migrating existing Mercurial (HG) repositories to Helix TeamHub

The following steps are needed in order to migrate existing Mercurial repositories to Helix TeamHub:

  1. Create a new repository in Helix TeamHub project. You can accomplish this either through quick actions or from the repositories screen:
    Create new repository from quick actions
  2. Clone the repository you wish to migrate:
    hg clone <OLD-REPOSITORY-URL>
  3. Go to the repository directory:
    cd <YOUR-REPOSITORY-NAME>
  4. Obtain the clone URL for the repository you created in Helix TeamHub from the repository view:
    Helix TeamHub Mercurial repository clone URL
  5. Push the repository to Helix TeamHub:
    hg push <HELIX-TEAMHUB-REPOSITORY-URL>
    If you copied the clone URL with SSH as an access method, you need to have your SSH key added to Helix TeamHub in order to push the changes.
  6. Clone the repository from Helix TeamHub to a new directory
    Alternatively, you can change the new clone URL to the [paths] section of .hg/hgrc file in the repository.
Updated on: 12 September 2017