Check Out SVN Repository
Create a new local copy of a project by retrieving files from SVN source control.
On the MATLAB® Home tab, select New > Project > From SVN.
Alternatively, on the Simulink® start page, click the Project from SVN template.
If you know your repository location, enter it into the Repository path field and proceed to step 3.
Otherwise, to browse for and validate the repository path from which to retrieve files, click Change.
In the Specify SVN Repository URL dialog box, enter a URL using the list of recent repositories or the Repository button .
Caution
Use
file://
URLs only for single-user repositories. For more information, see Share a Subversion Repository.Click Validate to check the repository path.
If an authentication dialog box for your repository appears, enter the login information to continue.
If the path is invalid, check the URL against your source control repository browser.
If necessary, select a deeper folder in the repository tree. If your repository contains tagged versions of files, then you might want to check out from
trunk
or from a branch folder undertags
. For more information, see Tag and Retrieve Versions of Project Files. You can check out from a branch, but the built-in SVN integration does not support branch merging. Use an external tool such as TortoiseSVN to perform branch merging.When you have finished specifying the URL path you want to retrieve, click OK.
In the New Project From Source Control dialog box, in the Sandbox field, select the working folder where you want to put the retrieved files for your new project.
Click Retrieve.
If an authentication dialog box for your repository appears, enter the login information to continue.
Caution
Use local sandbox folders. Using a network folder with SVN slows source control operations.
If your repository already contains a project, then the project is ready when the tool finishes retrieving files to your selected sandbox folder.
If your sandbox does not yet contain a project, then a dialog box asks whether you want to create a project in the folder. To create a project, specify a project name and click OK. The Welcome screen appears to help you set up your new project. For more information about setting up a project, see Create a New Project from a Folder.
Note
To update an existing project sandbox from source control, see Update Revisions of Project Files.
Related Examples
- Set Up SVN Source Control
- Get SVN File Locks
- Work with Project Files
- Tag and Retrieve Versions of Project Files
- Refresh Status of Project Files
- Check for Modifications
- Update Revisions of Project Files
- View Modified Files
- Commit Modified Files to Source Control