Use Xlinks
Create Xlinks to connect repositories in Unity Version Control.
Read time 2 minutesLast updated 14 days ago
You can use Xlinks to share components between different repositories. For more information about what Xlinks are and how you can use them, refer to Xlinks.
Use Xlinks in the GUI
Create an Xlink
You can create Xlinks in the UVCS desktop application.- In the Workspace Explorer, right-click the directory or existing Xlink that you want to create an Xlink inside of.
- Select Create Xlink.
- In the dialog that opens, select the target changeset:
- Select the target UVCS server.
- Select a repository inside the server.
- Select a changeset inside the repository.
- Writable: allows you write permissions in the Xlinked repository.
- Relative server: the Xlink gets the local version of the repository (recommended when you use replicated repositories).
Modify an Xlink
To modify an Xlink, right-click on the Xlink and select Edit Xlink. In the Edit Xlink dialog, you can edit the target changeset of the Xlink. If you have a writable Xlink, you can edit the expansion rules.Use Xlinks in the CLI
Create an Xlink
To create an Xlink, you need to use thecm xlinkxlinkcm help xlinkcm xlink component1 / 1@mylibrary
Parameter | Description |
|---|---|
| The directory in the project repository that points to the mounted |
| The directory in the target repository. |
| The changeset number in the target repository. |
| The target repository. Together with the changeset, this forms a changeset specification. In this case, there is no server specified. If you do specify a server, the spec looks like the following: |
Create a partial Xlink
Use a partial Xlink to mount a subdirectory in your repository. A partial Xlink has to be read only. For example:In the above example, the Xlink ensures that any files incm xlink component1Src /src/dll cs:478@mylibrary
cs:478@mylibrary/src/dll/component1SrcCreate a writable Xlink
To create a writable Xlink, you need to specify the-wcm xlink -w component1 / 1@mylibrary
Modify an Xlink
To modify an existing Xlink, you can use the-ecomponent1mylibraryFor more information about how to modify an Xlink in the command line, refer to thecm xlink -e component1 / 5@mylibrary
xlinkcm help xlink