Jump to content

Plastic SCM Cloning


Deepak Kumar

Recommended Posts

  • 4 years later...
  • 4 months later...

Plastic SCM offers two methods to create a copy of a repository for testing purposes without affecting the original:
Method 1: Using the cm clone command (For advanced users):

Open a terminal window.
Navigate to the directory where you want the new repository.
Run the following command, replacing <source_repository> with the name of the original repository:
cm clone <source_repository>

This creates a new repository with an identical structure and history as the original. However, it's important to note that this method works best with empty destination repositories to avoid branch name conflicts.

Method 2: Using the Synchronization view (For all users):
Open Plastic SCM Desktop.
Go to the Repositories view.
In the source server section, locate and select the original repository.
Right-click on the selected repository and choose Create Workspace.
In the Destination section, choose the server where you want to create the copy.
Click Create.

This creates a new workspace (local copy) of the original repository. You can then work on this copy without affecting the original.

Additional Considerations:
Whichever method you choose, remember to rename the new repository if desired to differentiate it from the original.
Since you're replicating for testing purposes, consider using a dedicated branch within the new repository to isolate your changes.

By following these steps, you can create a safe testing environment based on the original repository.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...