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

Re: tool to autosync working copy metadata?

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-03-09 10:55:52 CET

On Friday 09 March 2007 01:12, Vlad Skvortsov wrote:
> [please CC me, I'm not on the list]
>
[...]
> Is there any tool available, or a "best practice" approach known, to
> solve the following problem. Let's say I have an SVN working copy and an
> application that modifies/adds/removes files/directories in this
> directory. The application is not SVN-aware. I'd like to have a
> script/tool that would bring the SVN metadata in line with reality: e.g.
> all new files/directories scheduled for addition, all removed ones
> scheduled for removal. Basically, what I'd like to do is:
>
> $ modify-working-copy.py
> $ metadata-update.py
> $ svn ci -m "Updated"
>
> ...and have the exact "mirror" of my directory in the repository.

Apart from the advise given by Ryan, you could always export instead of
checkout the data and then use svn_load_dirs.pl instead of checking in. This
is by far not beautiful.

Another approach is to simply use a temporary dir (without .svn dirs) and then
compare/sync that with the real working copy dir. I'm not aware of an
existing solution though.

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
Geschäftsführer: Ronald Boers       Steuernummer: 02/892/02900 
Amtsgericht Hamburg HR B62 932      USt-Id.Nr.: DE183047360
**************************************************************************************
           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.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 9 10:54:34 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.