Creating shortcut folders inside repository

175 views
Skip to first unread message

Alec Ye

unread,
Feb 22, 2024, 2:33:53 PM2/22/24
to TortoiseSVN
Hi I am wondering if it is possible to have shortcut folders inside the repo pointing to other parts inside the repo?

IE
Trunk > Product > Color > Drawings

Trunk > Folder shortcut (points to Drawings)

When I try making a shortcut folder and point to Drawings, it uses my local windows path and not the repository path, so when another uses tries to use the Folder shortcut, it says path is invalid. Does TortoiseSVN have a folder shortcut for the repository?

Daniel Sahlberg

unread,
Feb 22, 2024, 3:52:50 PM2/22/24
to TortoiseSVN
There are several options and it probably depends on what you want to achieve.

Regular Windows shortcuts are plain files with a .lnk extension that are versioned by Subversion like any other file. As far as I understand shortcuts can't have relative paths but one webpage [1] suggests to make a shortcut to explorer.exe, which will happily accept a relative path. I tested quickly and it seems to work.

Subversion also has the concept of "externals" (see the Subversion book [2]) which will checkout a copy of the target. The TortoiseSVN repository uses externals to pull several external components (including the Subversion library) into the build/development tree. In you example you would get two distinct copies of Drawings if you check out Trunk, so this is probably not what you want.

You can also create a shortcut pointing to the repository itself (https://svn.example.com/respos/...) which will open a webpage or calling TortoiseProc.exe to do whatever Tortoise-action you want (example: "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:repobrowser /path:https://svn.apache.org/repos/asf/subversion). I guess this is not what you want but I wanted to mentionit anyway.

Kind regards,
Daniel



lorenz

unread,
Feb 23, 2024, 1:40:10 AM2/23/24
to torto...@googlegroups.com
file system level links won't work

have a look at "externals"
https://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html
--

Lorenz

Reply all
Reply to author
Forward
0 new messages