Use Xlinks
Create Xlinks to connect repositories in Unity Version Control.
読み終わるまでの所要時間 2 分最終更新 9ヶ月前
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.
You can also optionally set the writable and relative server options for the Xlink:
- 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).
If you create a writable Xlink, you can set the expansion rules.
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 the command. For more information, you can refer to the CLI reference, or use the command.
cm xlinkxlinkcm help xlinkFor example, you can create the following Xlink:
cm 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:
cm xlink component1Src /src/dll cs:478@mylibrary
In the above example, the Xlink ensures that any files in that exist in the subdirectory appear as read only files under the directory in the current workspace.
cs:478@mylibrary/src/dll/component1SrcCreate a writable Xlink
To create a writable Xlink, you need to specify the modifier, for example:
-wcm xlink -w component1 / 1@mylibrary
Modify an Xlink
To modify an existing Xlink, you can use the modifier. For example, you can modify an existing Xlink to point to changeset 5 on repository :
-ecomponent1mylibrarycm xlink -e component1 / 5@mylibrary
For more information about how to modify an Xlink in the command line, refer to the CLI reference, or use the command.
xlinkcm help xlink