How to refer to a specified repository by external reference in SVN

How to refer to a specified repository by external reference in SVN

I had a chance to do something like a symbolic link in the SVN repository, and there is a way to refer to a folder in a specified location in the repository with a feature called External References.

Right-click on the folder you want to refer to (let’s say C:\SampleProject) and select “Properties”.

How to refer to a specified repository by external reference in SVN

Select “New” – “External Reference” to open the following

How to refer to a specified repository by external reference in SVN

Click “New. On this screen, enter the folder name (here common) in the local path and the repository name (https://hog/~~~/common) in the URL to externally reference it.

How to refer to a specified repository by external reference in SVN

The property will be “svn:externals”.

Now the repository common will be externally referenced under the folder C:\SampleProject\common Finally, you must commit the property changes to C:\SampleProject.

It is OK if the folder icon in Eclipse(STS) has an arrow as shown below.

How to refer to a specified repository by external reference in SVN

svn command to display a list of properties

You can use the svn proplist command if you want to check if a property has really changed.

With the “-v” option, it is possible to list the names and values of all attributes.

C:\>svn proplist -v https://10.240.5.50/svn/pg
  svn:ignore
    .gradle

コメント

Discover more from 株式会社CONFRAGE ITソリューション事業部

Subscribe now to keep reading and get access to the full archive.

Continue reading

Copied title and URL