Use a nodata replica
Use a nodata replica to create partial clones of large repositories.
Read time 1 minuteLast updated 21 days ago
Use dehydrated nodata replicas to create low-storage, functional clones of large repositories so you don't need to create a full local clone. Because nodata replicas only contain metadata, they are small and fast to create, even for multi-terabyte repositories. When an operation requires file content, such as to update your workspace, Unity Version Control (UVCS) retrieves the necessary data on-demand from the source repository. UVCS uses this data for the operation, but doesn’t store it in your local replica. When you check in new files to a nodata replica, the new data is stored locally within your replica. You can then push these changes back to the main server as with a standard replica. For more information on partial clones and version control workflows, refer to Workflows and partial replicas.
Create a nodata replica
To create anodata- In the Branches view, right-click a branch.
- Select Push/Pull > Pull this branch.
- Select the source repository.
- Select the Do not replicate data option.
--nodatacm pull <source_spec> <destination_spec> --nodataHydrate a replica for offline use
The primary limitation of a nodata replica is that it requires a network connection to the source repository to retrieve file data. To work offline, you need to intentionally download the file data you need from the source repository. This process is known as hydrating the replica. You can use the CLIpullcm pull hydrate <branch_name>@<repo_spec>cm pull hydrate --cset=<changeset_id>@<repo_spec>Hydrate the latest changeset
A common and efficient workflow is to download only the data required for your current work, instead of the entire branch history. The process is as follows:- Create a nodata replica of the main repository.
- Hydrate only the latest changeset of the branch you want to work on.
- Update your workspace to that changeset.