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

Re: How to convert a regular file to a sym link?

From: Matt England <mengland_at_mengland.net>
Date: 2005-12-01 17:55:30 CET

Hi Saulis,

Thanks for your response. Comments below.

At 12/1/2005 10:37 AM, Saulius Grazulis wrote:
>On Thursday 01 December 2005 18:15, Matt England wrote:
>> Any more thoughts on this? I need to solve this problem pretty soon, would
>like to do this for all my files across the board in a more-elegant way then
>the following:
>> >The only thing I can think of right now is to 'svn revert', 'svn del',
>> > then 'svn add' the file after running my ldconfig (that creates the sym
>> > link) again. This seems rather cumbersome to do for every file.
>>
>
>I would try something like this (careful, commands untested! Dont run them as
>root, check before!):
>
>*nix> for i in `svn st | awk '/^~/{print $2}'`; do ( set -x; mv $i $i-old; svn
>del $i; svn ci -m "Deleting $i" $i; mv $i-old $i; svn add $i; sv ci
>"Committing new $i"; ) done

Ok, so this looks like an automated means to do execute the manual process describe above, and that's a good thing.

However, I was hoping there was an alternative way to do this via subversion, at least on a per-file basis, other then the svn del-then-add process, chiefly because said process loses the file history properties (I think).

Any further thoughts?

In any case, thanks for the above automation code.

-Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 1 18:22:38 2005

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