本文转自:https://docs.uipath.com/studio/docs/svn-version-control
SVN Version Control
Opening a Project from SVN
- In the Team page, select Open from SVN. The Open from SVN Repository window opens.
- Type in the Repository URL or use the button to open the repository browser. Expand or collapse folders in the repository, look inside folders, copy the Selected Path or select a file to open. Click OK.
- Pick an empty Check out directory. Select the Use credentials box and fill in your Username and Password. Click Open. The project is now available in the check out directory.
- A Question dialog box is opened, with two options for pulling the
Main.xaml
file from the repository:- Check out latest and edit - opens the latest version of the
Main.xaml
file from the repository, in edit mode. The Break Lock option allows you to check out a project from a SVN repository that was previously checked out by a different user. - Open local as read only - opens the local version of the
Main.xaml
file in read-only mode. The Package Manager can be opened even if the files are in read-only mode, but in order to perform changes and install dependencies, theproject.json
file needs to be checked out.
- Check out latest and edit - opens the latest version of the
Adding a Project to SVN
Note:
Some SVN operations are not directly manageable through Studio. For this, and to ensure optimal compatibility, use a recent version of a SVN client. For TortoiseSVN, versions up to 1.9.7 are supported.
- Create or open a project in Studio from the Start tab in the Backstage view.
- Click on the Show Team Page button in the Project panel. This opens the Team page.
- Click on the Add to SVN button to open the Add to SVN window.
- Type in the Repository URL or use the button to open the repository browser. Select a file to open. Click OK. Provide a path to the Check out directory. The check out directory must be empty. If applicable, check the Use credentials check box, and type in the User and Password. Click Add to upload the project to the SVN repository.
- In the Check In Changes window, select the files that you would like to add to the repository and write a Commit Message.
- Click Check In. The files are now available in the repository, together with the Commit message. The
project.json
file returns to read-only mode in Studio.