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

Re: How to automated labels

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Mon, 20 Feb 2012 14:37:18 +0100

Am 17.02.2012 13:23, schrieb Jonatas Emidio:
> We need to versionate not only the project but also each object inside
> this project.
> I think about an automated that when we alter an object this label:
> for example:
> 1 - object.java -> label 1.0
> 2 - user change the object
> 3 - object.java -> label 1.1
> To conclud, i need a label working as a version for object.

Firstly, take a look at so-called "tags". This is what is customary in
SVN when assigning labels to a certain state. Make sure you understand
this first, you will find info e.g. in the online SVN book.

Now, concerning your question, you could create a post-commit hook that
generates a tag. You have to be aware that this post-commit will
generate another revision, so you must make sure this doesn't turn into
an endless recursion. You could achieve that by e.g. looking at the path
or the submitter.

What others already mentioned is that you probably don't need any of
this and chances are high that they are right. However, this is just a
guess, because nobody here knows exactly what you are trying to achieve
with this versioning schema. So, the first thing you should do is tell
us what you want to achieve or what problem you want to solve instead of
asking for help implementing one specific (possibly bad) solution!

Domino 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.dominolaser.com
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. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-02-20 14:37:34 CET

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.