triadapics.blogg.se

Tortoisehg connect to existing repository
Tortoisehg connect to existing repository






Once you’ve done this, anyone cloning the repository will also get the submodule, at the same commit. These uncommitted changes represent the addition of the submodule to your repository, and you must commit & push them as you would do with any other change. In Mercurial, there will be a “.hgsub” file instead but the principle is the same. You’ll see in the file status view that a couple of entries have been staged: In this case you’ve just added the submodule, but it’s not actually committed yet. ‘…’), or incoming / outgoing changes (up/down arrow). Submodule entries can also have annotations to let you know if there are uncommitted changes in the submodule (ellipsis annotation, i.e. If you wanted to see more detail about the submodule, just double-click on it to open it in its own repository window, from which you can, if you like, make changes to it just like any other repository. This tells you that your submodule is located in dependencies/sub1 and is currently on the ‘master’ branch. Once the submodule has cloned, you’ll see it appear in the sidebar like this:

tortoisehg connect to existing repository

You’ll then be prompted to provide a source URL to clone the contents from, and the path within the current repository that this submodule will reside.

tortoisehg connect to existing repository

Adding a submodule to your projectĪdding a new submodule to your project is simple, just right-click on a blank area of the sidebar and select ‘New Submodule’ (or select it from the Repository menu).

#TORTOISEHG CONNECT TO EXISTING REPOSITORY CODE#

The most common reason for wanting to do this is that your project has dependencies on other code bases (libraries for example), and you want to track those from their original sources rather than duplicating the files within your own repository.įor the sake of brevity from here on I’ll use the term ‘submodule’ to mean ‘subrepository’ as well, unless I’m talking about a Mercurial-specific feature. The terms may be different, but they refer to the same concept that of nesting other repositories within the folder structure of your own repository. Using submodules and subrepositories By Steve on February 1, 2012Ī headline feature of SourceTree 1.3 is the support for submodules (in Git) and subrepositories (in Mercurial).






Tortoisehg connect to existing repository