Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

SVM Mirror provides several options to identify the layout of your Subversion project and generates the rules to map Subversion directories (such as the trunk, branches, tags, and shelves) to Git.

Identifying Subversion project layout

On the "Set up SVN Mirror or Import SVN Project" page, select the way to identify the layout of a Subversion project that you want to import or mirror.

To specify manually the rules to map the Subversion directories to Git references at the next step, select Manual Configuration.

To import or mirror the whole Subversion directory, which the URL points to, into a single Git master branch, select Single Directory Translation.

To allow SVN Mirror to identify branches and tags automatically relative to the trunk folder, select Automatic ConfigurationTo specify the trunk folder, click Select Trunk Path… , and then select the trunk folder. 

This process may take some time in case your Subversion project has a large branch history.

Based on the option that you’ve selected, SVM Mirror generates the branch mapping rules and displays them on the Branches Mapping tab. You can adjust these rules to correctly map the required Subversion directories to Git references.

Specifying branch mapping rules

On the Branches Mapping tab, view, and if required, adjust the rules to map Subversion directories (such as the trunk, branches, tags, and shelves) to Git references.

Use the following mapping format:

<Subversion-Path-Pattern>:<Git-Reference-Pattern>

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:

trunk = trunk:refs/heads/master
branches = branches/*:refs/heads/*
tags = tags/*:refs/tags/*
shelves = shelves/*:refs/shelves/*
  • No labels