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

Re: Can I prevent or avoid object duplication in different folders?

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Mon, 21 Sep 2009 11:02:28 +0200

On Friday 18 September 2009, Marcio E. Kaneko wrote:
> We utilize Tortoise SVN in a 40 people group divided in 5 major areas.
>
> Say someone from area A has an object (like a stored procedure) under their
> responsibility and version it under their proper folder.
>
> Now say someone from area B try to create the same object in a different
> folder unnecessarily.
>
> How can I avoid this?
>
> I mean, there are any way to warn area B that area A has the same stored
> procedure versioned on the repository and ask for confirmation before
> duplicating it?
>
> Or... if I allow the duplications, there are any way to search out the
> repository to identify them?

Subversion is basically a tool for versioning files. As such, it neither cares
for the content of files, their names (provided the path inside the
repository is unique) or any meaning that some human might associate with it.
This basically means that your requirements are outside the scope of
Subversion and as such you won't find any support for them here.

However, apart from the purist file versioning, there is also the pragmatist
side. For that, you e.g. have hook scripts. For your particular case, I would
suggest a pre-commit hook that validates the commit and rejects it if it
doesn't suit your desires. That way, people trying to do something unwanted
will receive error messages.

A different approach is to regularly validate the content and send out a
summary to the team afterwards. That way, people are notified of shortcomings
and can issue according fixes.

Uli

-- 
ML: http://tortoisesvn.tigris.org/list_etiquette.html
FAQ: http://tortoisesvn.net/faq
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
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.
**************************************************************************************
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2397240
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-09-21 11:03:58 CEST

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

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