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

Re: Hardlink conversion from Linux to Windows

From: Julian Kolodko <Julian.Kolodko_at_silverbrookresearch.com>
Date: 2007-05-09 04:59:36 CEST

Thanks for the information on hardlinks under NTFS.

Unfortunately, as Daniel pointed out, I was using the wrong
terminology. The links in the original Linux working copy were actually
symlinks (softlinks) rather than hard links. If they had been hardlinks
then presumably multiple copies of the same file would have been stored
in the repository.

I thought I might be able to sidestep this problem by checking out the
directory using svn under cygwin. Interestingly SVN under cygwin treats
symbolic links differently to Tortisesvn. Tortisesvn writes a simple
text file that gives the location of the target file. When you check
out using Cygwin/SVN and look at the result under cygwin all the
symlinks work as you would expect. Under windows explorer the symlinks
appear as windows links (windows displays a little arrow at the bottom
left of the icon and the file is a binary file not a simple text file)
but double clicking on the link doesn't do anything.

I might try getting access to a Linux system, checkout the directory
then try moving it to my windows PC using samba. Maybe that will
replace the symlinks with copies of the target file. If all else fails
I'll try writing a script to do the job.
 
As has been suggested, I might move this discussion to the svn forums
rather than the tortoise specific list.

Cheers and thanks to all.
Julian

Jared Silva wrote:
> Moretti, Giovanni wrote:
>> You seem to need special tools to detect when a directory contains a
>> junction point as they don't appear any differently in explorer.
>>
>> Use with caution, and don't (as I did) forget that you've set up a
>> (phantom) folder pointing somethere else, and then run a "duplicate file
>> finder". Deleting one make both go away :-(
>>
>> Having discovered them, I actually avoid using them - it's too easy to
>> make mistakes, but in your situation, they may be of use.
>
> http://www.microsoft.com/technet/sysinternals/FileAndDisk/Junction.mspx
>
> User beware!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
> For additional commands, e-mail: users-help@tortoisesvn.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Wed May 9 04:59:57 2007

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