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

Re: Keep only one copy of each unique file in the repository

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: 2007-02-09 14:54:00 CET

MrR08040 wrote:

> Correct.
>
>> The Subversion way to add two files of the same contents and store it
>> in the repository only once is to "svn add" the one, then "svn cp" it
>> to the other.
>
> Yes, that's what I would do if I were using using the "normal" svn
> client tools. But I would like to use svn's WebDAV feature to mount a
> repository as a filesystem to store all my files in it. I probably
> have lots of duplicate files in my "unsorted" directory and for me it
> be great if svn just stored one copy of each unique file.

Svn can't do it unless you give it a concept of ancestry by copying the
file from some existing parent with the svn tools.

> OT: Anyone have a better idea for managing their duplicate files and
> keeping history of edits to documents automatically in lieu of using
> svn's WebDAV capabilities?

If periodic backups at some interval would be sufficient, you might look
at backuppc http://backuppc.sourceforge.net/. It can back up many
machines and will consolidate all identical files into one copy on disk
regardless of whether the duplicates come from different machines or
different backup runs. Unfortunately, although it can use rsync as the
transport mechanism and just send the file differences over the network,
it doesn't understand file versioning and will end up storing a complete
    different copy for each slight change in a file so it could be even
worse if you have large files and make frequent small edits. It does
have an interesting approach to finding and pooling duplicates, though.

-- 
   Les Mikesell
    lesmikesell@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 9 14:54:38 2007

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.