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

AW: [TSVN] Hard links

From: Marco Scholz <mscholz_at_samson.de>
Date: 2004-07-22 08:18:18 CEST

-----Ursprüngliche Nachricht-----
Von: Boris [mailto:boris@kafana.org]
Gesendet: Mittwoch, 21. Juli 2004 19:14
An: dev@tortoisesvn.tigris.org
Betreff: RE: [TSVN] Hard links

>> I'm using TortoiseSVN 1.07 and I use Hard Links (hard links are
>> a hidden feature of NTFS on Win2k and XP to create more than one
>> directory entry for one file on the disk (something like a "cheap
>>copy")).
>> When I use hard links with files that are under TortoiseSVN control,
>> these hard links will be deleted sometimes.
>> It seems like TortoiseSVN is deleting files before it does
>> some operation (for example "revert") on it.

>Hard links are not hidden feature of NTFS. They are very well documented in
>MSDN. Utilities for creating hard links on NTFS usually come in Win32
>resource kits.
>The problem you are having is I think something that will be hard to "fix".
>If you take a look at the CreateHardLink function documentation you will
>see
>that the DeleteFile function is used for removing hard links.

>http://msdn.microsoft.com/library/default.asp?url=/library/en->us/fileio/ba
se
>/createhardlink.asp

>I think that this is exactly what's happening with the SVN/TSVN "revert"
>operation. So in order for this to work right (and already does), they have
>to go a few steps further in preserving your hard link. Since this is not
>cross platform code (*very* win32 specific), I think it will never happen
>:).

Sorry for my English, I'm not a native speaker. With hidden I mean not well
known, no GUI support, not many tools.....

The point is, that an application must not worry about hard links, it should
only overwrite files instead of:

 - creating a temp file
 - deleting the old version
 - renaming the temp file

This is NOT platform specific. Maybe a new parameter or a environment
setting to change this behaviour could be added ?

Thanks

Marco Scholz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jul 22 09:20:11 2004

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

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