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

RE: [TSVN] Hard links

From: Boris <boris_at_kafana.org>
Date: 2004-07-21 19:13:33 CEST

> 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/base
/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
:).

- Boris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jul 21 20:18:14 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.