MacHg icon

Adding an Existing Local Repository

You can add a repository (to the ones MacHg can work with) in a number of ways: through menus, contextual menus, or simply dragging and dropping.

To add an existing local repository through menus:

  1. Choose Repository > "Add Local Repository...", or right-click in the left sidebar and choose "Add Local Repository..."

  2. In the dialog that appears, either type into the field "Local Path" the path to the to-be-added repository or click on the browse icon to the right of the "Local Path" field.

  3. In the dialog that appears, enter a short name of your choosing to help you identify the added repository. This short name will be used in the left sidebar and in other places to refer to this repository.

  4. If the directory of the added repository contains the correct repository meta-data (a ".hg" directory) then you can choose to "Manage Repository". (Alternatively, if no repository meta-data exits in the chosen directory, you can opt to create the necessary meta-data in this directory to turn the directory into a Mercurial "repository". In Mercurial terms, you can "initialize" a repository with the contents of the chosen directory.)

To add an existing local repository through dragging and dropping:

  1. In the Finder, locate the folder of the repository that is to be added.

  2. Drag that folder onto the list of repositories in the MacHg document window.

  3. (If no repository meta-data exits in the chosen directory, you can opt to create the necessary meta-data in this directory to turn the directory into a Mercurial "repository". In Mercurial terms, you can "initialize" a repository with the contents of the chosen directory.)