You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Vlad Skvortsov <vs...@73rus.com> on 2007/03/09 00:12:27 UTC

tool to autosync working copy metadata?

[please CC me, I'm not on the list]

Hi!

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.

I guess someone has faced this problem before...

Thanks!

-- 
Vlad Skvortsov, vss@73rus.com, http://vss.73rus.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tool to autosync working copy metadata?

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
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


Re: tool to autosync working copy metadata?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 8, 2007, at 18:12, Vlad Skvortsov wrote:

> 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.
>
> I guess someone has faced this problem before...

I guess the typical advice in this scenario is "don't do that."

http://subversion.tigris.org/faq.html#wc-change-detection

Perhaps that means don't use that tool that adds/removes files/ 
directories in the working copy without Subversion's knowledge.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org