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

Re: Can I use cp -l (hard links) on working copies?

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-08-12 10:04:56 CEST

On Mon, Aug 11, 2003 at 09:32:47AM -0500, cmpilato@collab.net wrote:
> Marcus Alanen <maalanen@ra.abo.fi> writes:
> > Hello everybody,
> >
> > is it possible to use "cp -l" to create copies of the working copy
> > using hard links, on a unix filesystem? The benefit would naturally be
> > space savings on the hard drive. This is naturally assuming an editor
> > which unlinks before it modifies files.
> You know, I have no idea.

Please take this with a grain of salt, since I am not one of the
Subversion developers, but I think this should work just fine.
Subversion seems to work on temp files, which it then uses to replace
the original file, if any. i.e. it breaks the links before modifying

> > If not, is it ok to just do a proper copy of the working copy and/or
> > move it around in the filesystem?
> This should be fine.

This was a design goal AFAIK. You can move it to a different machine
too, not just another place on the same filesystem :) (Although if you
move a working copy between Windows and Unix and have svn:eol-style set
to native on any files, I think things will break.)

Michael Wood <mwood@its.uct.ac.za>
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 12 10:05:53 2003

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

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