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

Re: File management

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Fri, 22 Jan 2010 09:33:07 +0100

On Friday 22 January 2010, Naz wrote:
> I would like to use Subversion as a document management repository.
> I.e., instead of keeping source code in the repo, I'll keep Word docs,
> Excel sheets etc. I do understand that I lose diffing and all text file
> handling functionality, but that's fine, all I need is an easy solution
> to versioning and incremental backing up.

Actually, Openoffice but also MS Word allow diffing. TortoiseSVN (probably
most popular SVN client on MS Windows) automatically uses those in order to
diff such documents already.

> The only remaining problem I have in doing this is file management. I
> can add files into the local directory and then just add the line "svn
> add --force ." to the my script. However, I need to be able to update
> deleted files and moved files as well. I.e., if I delete a file from my
> local dir (other than by using svn del) I need it to be removed from the
> repo.

TSVN makes it easy, as when committing it will show you missing files and
properly deleting them is just a mouseclick away. Also, you can tell it to
also show unversioned files, which can then be added conveniently there, too.

> Using svn del every time I want to delete a file is not really
> practical, as I prefer to do file management using explorer, thunar or
> the cli, depending on which OS I'm in at the time. I don't want to have
> to remember to only ever do deletes and moves using the svn client.
>
> Is there any way that I could script the deletion of files that are in
> the repo but have been removed from the working directory? I.e., if I
> delete a file from my local copy, run the equivalent of "svn del" on
> every missing file before the commit, so that the working dir and the
> repo stay in sync.

Have you taken a look at Web-DAV? I'm not actually sure, but I believe that
this is already similar to what you want. Other than that, there is no
feature in SVN to treat a repository as a whole instead of a collection of
independent files.

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2010-01-22 09:33:58 CET

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.