symbolic links are not exported correctly on Windows 10

248 views
Skip to first unread message

Massimo Poli

unread,
Aug 1, 2021, 11:33:13 AM8/1/21
to TortoiseSVN
Create a symbolic link to a file with mklink within your repository, for example:
mklink /path/to/link /path/to/target

Export the the repository:
svn export /path/to/repository /path/to/destination

Edit the file  /path/to/link, you will see a content similar to:
link  /path/to/target

In other words, the symbolic link is not "expanded". 

Symbolic links to folders are exported correctly.

Daniel Sahlberg

unread,
Aug 1, 2021, 11:54:18 AM8/1/21
to TortoiseSVN
Den sön 1 aug. 2021 17:33Massimo Poli tramite TortoiseSVN <torto...@googlegroups.com> skrev:
Create a symbolic link to a file with mklink within your repository, for example:
mklink /path/to/link /path/to/target

Export the the repository:
svn export /path/to/repository /path/to/destination

Edit the file  /path/to/link, you will see a content similar to:
link  /path/to/target

In other words, the symbolic link is not "expanded". 

That is, unfortunately, the behavior of Subversion at this time. 

See the notes in the Subversion book:



Symbolic links to folders are exported correctly. 

I agree this feature would be desirable. You can reach out to the Subversion developers at the mailing list


It will not change anything right now but at least it is a vote for this feature. Best would be if someone could contribute the code, there is a shortage of Windows developers in Subversion. 

Kind regards, 
Daniel Sahlberg 
Reply all
Reply to author
Forward
0 new messages