[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Symbolic links - Eclipse not compatible with Subversion

From: UM <200603_maps_at_email.de>
Date: 2006-10-24 16:17:05 CEST

Hi,

I would like to use UNIX-style symbolic links in Subversion and Eclipse. I am working with LINUX.

It seems that Eclipse and Subversion are incompatible: All 3 cases, i.e. relative symbolic link, absolute symbolic link and broken symbolic link, do not work.

I have made these observations:

1. Import (via Eclipse - SVN Repositories - Import) works fine. But now: After the check out of the imported project the resource navigator views linked directories and files as normal, new, not linked objects which should be committet (why?). The broken links are not shown. The workspace in
the file system is OK, however. A commit causes these messages:

    svn: '/home/wsy5043/Eclipse_workspace/my_project_with_links_number_2/Directory/Directory_2_abs_sym_linked/nice_text_file_2.txt' is not under version control

2. If links are copied to a new project in the workspace, Eclipse and Subclipse convert these links to normal files or directories. Broken links are discarded.

3. Trying to use linkedResources of Eclipse as symbolic links will not be honored by Subversion: After a check out these linkedResources will not be established as links in the workspave / UNIX file system.

Using subversive instead of subclipse causes similar errors and does not work as I expected.

Does anyone has an idea or a suggestion or a feedback?

My suggestions for solving the problem are:
- SVN check out should maintain Eclipse's linkedResources in .project and in Eclipse's navigator.
  No changes in behaviour with regard to the file system.
- Eclipse's import into navigator's workspace view should convert UNIX's symbolic links
  to linkedResources (maintenance of .project included).
- Broken links should not be discarded. The user should only be kept informed about this.

UM

---
Appendix: 
Here is a sample project dealing with abolute symbolic links (abs_sym_linked), relative symbolic links (rel_sym_linked) and broken symbolic links (bad_sym_linked) for demonstration purpose.
my_project_with_links:
drwxr-xr-x    4         4096 Oct 17 09:38 .
drwxr-xr-x    8         4096 Oct 23 14:01 ..
drwxr-xr-x    2         4096 Oct 24 10:40 Directory
drwxr-xr-x    2         4096 Oct 24 10:40 Directory_2
-rw-r--r--    1           41 Oct 17 09:49 very_nice_text_file.txt
my_project_with_links/Directory:
drwxr-xr-x    2         4096 Oct 24 10:40 .
drwxr-xr-x    4         4096 Oct 17 09:38 ..
lrwxrwxrwx    1           52 Oct 24 10:40 Directory_2_abs_sym_linked -> /home/wsy5043/temp/my_project_with_links/Directory_2
lrwxrwxrwx    1           28 Oct 24 10:40 Directory_2_bad_sym_linked -> /link/to/nowhere/Directory_2
lrwxrwxrwx    1           14 Oct 24 10:40 Directory_2_rel_sym_linked -> ../Directory_2
-rw-r--r--    1           36 Oct 17 09:44 nice_text_file.txt
lrwxrwxrwx    1           64 Oct 24 10:40 very_nice_text_file_abs_sym_linked.txt -> /home/wsy5043/temp/my_project_with_links/very_nice_text_file.txt
lrwxrwxrwx    1           41 Oct 24 10:40 very_nice_text_file_bad_sym_linked.txt -> /link/to/nowhere/very__nice_text_file.txt
lrwxrwxrwx    1           26 Oct 24 10:40 very_nice_text_file_rel_sym_linked.txt -> ../very_nice_text_file.txt
my_project_with_links/Directory_2:
drwxr-xr-x    2         4096 Oct 24 10:40 .
drwxr-xr-x    4         4096 Oct 17 09:38 ..
-rw-rw-r--    1           38 Oct 17 10:33 nice_text_file_2.txt
---
Eclipse 3.2.1, Subversion 1.3.2, subclipse 1.0.3, subversive 1.0.3
#.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Oct 24 16:17:20 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.