Version Control - Perforce
Perforce is a commercial, proprietary, centralized revision control system developed by Perforce Software, Inc. Users work on files in local client workspaces. With Aqua Data Studio users can now create a new Perforce repository in Aqua Data Studio and manage files. Users can also interact with the Perforce Command-Line Options using the Open API interface AQPerforce under com.aquafold.openapi.vcs in the AquaScript editor.
Your first Perforce Workspace using Aqua Data Studio
Now with Aqua Data Studio, you can create a Perforce workspace or select an existing Perforce client workspace that has already been set up for your computer
Connecting to an existing Perforce Workspace with Aqua Data Studio
Perforce Connecting Select Checkout | Perforce Connecting Existing Workspace |
Create a new Perforce Workspace with Aqua Data Studio
Perforce Create New Workspace |
Syncing your Workspace
To populate your workspace with the depot files, do a Version Control --> Update(Sync)
Perforce Syncing your Workspace |
Once all the files are updated, you see a message displaying the completion of the updates and that you have the most updated files in your workspace
Add files and Commit
Perforce Add Files Mark for Add | Perforce Add Files Submit |
Once all the files are committed, you will see a green tick mark to indicate that the files are now versioned.
Edit files - First Check Out and make changes
To edit a file, make changes and commit, you first need to Check Out.
Perforce Checkout File | Perforce Checkout Edit File |
If you are required to Edit many files, Select them all, right-click and select Check Out
Check-in Files using Aqua Data Studio - Submit
Once you are finished with your edits, check-in files using the below steps. An SVN Commit is analogous with Perforce Submit
Perforce Check In Files |
Revert unwanted changes
Suppose you want to restore the copy of your file to the revision last synced to your workspace, how will you proceed with the operation?
Perforce Revert Files |
If at all you are required to Revert entire files inside a folder, you can do so by just selecting the Folder and right-click and selecting Version Control > Revert, instead of selecting each file individually.
View Depots and Files using Aqua Data Studio
If you want to view the Depots available with the Perforce Server:
Perforce View Depot | Perforce View Depot Navigate Files |
Another way is
Edit Workspace and Client Mappings
If you want to control how the depot files appear in your Aqua Data Studio Workspace, you must map the files and directories on the Perforce server to the corresponding areas of your local server. This only sets up the view and does not transfer files to and fro.
Perforce Edit Workspace | Perforce Edit Workspace View Tab | Perforce Edit Workspace Form Tab |
Notice corresponding Client Expression is generated on the right most tab. If you click on the Form Tab and navigate to the bottom you can see View with all the client expressions for the Depot
Show History
Within the Files Tab, left-click on a file, files, or directory to select, then right-click and navigate to "Version Control" to select "Show History...". This displays the Version Control history of the selection in the repository. Within the Repository Browser, expanding the tree to select the file or directory you wish to view the history on, then left-clicking it brings up its history in the History Table. The history displayed in the Repository Browser and the history displayed when selecting Version Control->Show History work similarly.
Perforce Show History | Perforce Show History Changes |
Depot Browser
The Aqua Data Studio Depot Browser is a convenient way to view all of the contents of the Perforce Server. While the Depot Browser shows details on item history, it does not show the status of local working versions. It is more for exploring the remote repository and its contents than managing the local versions of files.
To Launch the Depot Browser, right-click on an item in the Files Browser and select Version Control > Browse Depot. A window appears with the list of files in the repository. An expandable tree view appears on the left and history for the selected items in the tree appears on the right. Inside the tree, right-clicking on items allows to open and refresh.
Additional Perforce features