You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Troy Curtis Jr <tr...@gmail.com> on 2007/10/24 03:15:21 UTC
Subversion and hard links
Just curious if anyone knows whether Subversion is "compatible" with
hard links on a linux box? What I mean is if I copy a directory using
hard links instead of an actual copy, will subsequent updates, merges,
etc "break" the hard-links correctly such that the directories will
begin to diverge?
I know that the git documentation mentions this as a way to get cheap
working copies from the same git repo data. Just thought this would
be a good way to save some disk space.
Thanks,
Troy
--
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Subversion and hard links
Posted by Mark Reibert <sv...@reibert.com>.
On Tue, 2007-10-23 at 22:15 -0500, Troy Curtis Jr wrote:
> Just curious if anyone knows whether Subversion is "compatible" with
> hard links on a linux box? What I mean is if I copy a directory using
> hard links instead of an actual copy, will subsequent updates, merges,
> etc "break" the hard-links correctly such that the directories will
> begin to diverge?
I just performed a simple test, and yes - at least for "svn up" - the
hard link is "broken". This tells me "svn up" is unlink(2)'ing the file
before writing the new one. I did not test other actions (e.g., merge)
that would alter the working copy.
Log from script session attached.
--
----------------------
Mark S. Reibert, Ph.D.
svn@reibert.com
----------------------