Import and mirror configuration settings enable SVM Mirror to translate your Subversion project to Git in a proper way. The configuration settings include:
Specify them on the corresponding tabs on the "Review Configuration and Start Mirror or Import" page.
Subversion authentication settings
In the URL field, specify the URL to a Subversion project that you want to import or mirror. Each Subversion project is translated to a separate Git repository. Then, specify or change the authentication settings to log in to a Subversion repository. To use the authentication data from a Subversion server and credentials cache, select the Use server-side Subversion configuration and credentials cache checkbox. The configuration directory path is displayed under the checkbox. Otherwise, clear the checkbox and select the authentication method to log in to a Subversion repository from the Authenticate With list. Depending on the configuration of your Subversion server, you may select: Specify the required credentials for the authentication method that you’ve selected. Check connection to the Subversion repository by clicking Test Connection. In the Poll Interval field, specify (in seconds) how often SVN Mirror will pull the changes from the original Subversion repository. The default polling interval is 60. To disable periodic synchronization and synchronize when pushing commits to a Git repository, set the polling interval to 0 (zero). In case you have a lot of mirrors, the default polling interval may cause performance issues. To reduce SVN Mirror resource usage, we recommend you to use REST API to invoke the explicit synchronization or to install the post-commit hook script on a Subversion server to call REST API. For more information, see SVN Mirror for Bitbucket server REST API.Synchronizing with a Subversion repository
Branch mapping settings
Use the following mapping format: Paths to Subversion directories are defined relative to the URL specified in the URL field on the Connection tab. Adjust the default mapping rules to make them correspond to your Subversion project layout or in case you want to map only particular Subversion directories, but not all of them. The default mapping rules:<Subversion-Path-Pattern>:<Git-Reference-Pattern>
trunk = trunk:refs/heads/master
branches = branches/*:refs/heads/*
tags = tags/*:refs/tags/*
shelves = shelves/*:refs/shelves/*
Author mapping settings
You may use all options or any combination of them. By default, all three options are selected. SVN Mirror refers to the mapping rules in the following sequence. If the mapping option is not selected or the match is not found, SVM Mirror refers to the next selected mapping option: If no match is found for a Subversion username, SVN Mirror automatically generates the Git author using the email domain specified in the Email Domain field. The following format is used for the automatic author generation: On the Authors Mapping tab, specify the rules to map Subversion users (svnUser) to Git authors (Author Name <email>) and vice versa. These mapping rules are applied only to the current Git repository. Make sure that the Use Repository Authors Mapping checkbox is selected. By default, this checkbox is selected. Use the following mapping format:svnUser = svnUser <svnUser@example.com>
Specifying author mapping rules for the current Git repository
svnUser = Git User <user@example.com>
Translation settings
On the Translation Settings tab, specify the following settings: These settings are used only once (during the first synchronization) and cannot be changed after the Subversion project has been imported or mirrored.svn:
eol-style
and svn:mime-type
Subversion properties to the .gitattributes
files, select the Translate file attributes checkbox.svn
:ignore Subversion property to the.gitignore
files, select the Translate Ignores checkbox. By default, this option is selected.