Thanks. What is the advantage of this approach respect to simply copying it? All the best. --- http://faunalia.it/pc
----- Reply message ----- Da: "Maciej Sieczka" <[email protected]> Data: lun, gen 10, 2011 20:36 Oggetto: [Qgis-developer] symlinks in GRASS plugins A: "qgis-developer" <[email protected]>, "Paolo Cavallini" <[email protected]> W dniu 09.01.2011 11:16, Paolo Cavallini pisze: > In the GRASS plugin there are tens of repeated icons. I would like to > replace them with symlinks, to keep everything more tidy. In principle > this should work: > http://www.rekk.de/bloggy/2008/versioning-symlinks-with-subversion-on-linux/ > but in practice it does not: > https://trac.osgeo.org/qgis/changeset/15006/trunk > I replaced v.in.gns.?.* with links, but the module do not see them. > I do not know if: > - the method does not work (unlikely) > - I did something wrong > - the GRASS plugin requires the image, and does not accept a link. Hi Paolo, Maybe a file external instead? SVN >= 1.6 is needed. An example: ### CREATE THE FILE ### $ echo 'file1 content' > repo_wc/file_1.txt $ svn add repo_wc/file_1.txt A repo_wc/file_1.txt $ svn ci repo_wc/file_1.txt -m 'adding file_1.txt to version control' Adding repo_wc/file_1.txt Transmitting file data . Committed revision 1. ### LINK IT ### $ svn up repo_wc/ At revision 1. $ svn propset svn:externals 'file_2.txt file:///home/pok/repo/file_1.txt' repo_wc/ property 'svn:externals' set on 'repo_wc' $ svn ci repo_wc/ -m 'file_2.txt is a copy of file_1.txt' Sending repo_wc Committed revision 2. $ svn up repo_wc/ Fetching external item into 'repo_wc/file_2.txt' E repo_wc/file_2.txt Updated external to revision 2. Updated to revision 2. ### BOTH FILES ARE NOW THERE AND HAVE THE SAME CONTENT ### $ ls -l repo_wc/ total 8 -rw-r--r-- 1 pok pok 14 Jan 10 20:23 file_1.txt -rw-r--r-- 1 pok pok 14 Jan 10 20:24 file_2.txt $ cat repo_wc/* file1 content file1 content Maciek -- Maciej Sieczka http://www.sieczka.org
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
