You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Annick Collet <An...@eumetsat.int> on 2005/07/28 09:44:53 UTC

Subversion Tag

Dear all, 

I'm new in subversion so may I submit you the following.

I have my repository structured as /trunk , / branches , and /tags.
I use the /tags folder to create "release" as milestone of
development.
How can I make that /tags/rel_number   read only  to avoid people
messing it  and ensure my release 


thanks Ann.

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

Re: Subversion Tag

Posted by David Weintraub <qa...@gmail.com>.
Enclosed is a hook I wrote that handles this issue. I wrote this hook
for several reasons:

* I didn't want to use the Config::IniFiles package since it is not a
standard Perl package. Not all distributions of Perl come with this
package. (Yes, you can download it, but I didn't want that to be a
requirement).
* I wanted to be able to prevent users from checking out and modifying
files in the tags directory.
* I wanted to be able to define groups for security purposes.
* I wanted to enforce file property policies.
* I wanted an automatic way of specifying private directories for
users for tags, branches, and even on the trunk. For example, Bob will
be able to create his own tags under /tags/bob, and Tom can put his
tags under /tags/tom.
* The hook can also "ban" certain file names. For example, you might
want to avoid files with names like "aux.*", "prn.*", and "con.*"
because these are not allowed under Windows. You might also ban files
with spaces in their name, or that have such things as "@" or "&" or
other problem causing characters.

The hook works via a "control-file" that you configure. The
"control-file" contains a lot of examples on the various syntax items
that are used in the "control-file".

If anyone has any suggestions for this hook, please let me know.

On 7/28/05, Annick Collet <An...@eumetsat.int> wrote:
> Dear all,
> 
> I'm new in subversion so may I submit you the following.
> 
> I have my repository structured as /trunk , / branches , and /tags.
> I use the /tags folder to create "release" as milestone of
> development.
> How can I make that /tags/rel_number   read only  to avoid people
> messing it  and ensure my release
> 

--
David Weintraub
qazwart@gmail.com

Re: @abc - Tag...

Posted by Günter Dannoritzer <da...@web.de>.
Hi Miha,

Miha Vitorovic wrote:
...
> dannoritzer@web.de wrote on 28.07.2005 12:28:59:

>>I am not sure about the author, but what I am using is the $Id$ keyword,
>>that gets expanded by the server. It includes revision #, submitter,
>>date, time, not sure whether I got them all.
> 
> 
> On a side note - I think that svn:keywords actually get expanded by the 
> client. Because if you browse the repository with a browser, the keywords 
> appear unexpanded.

I think you are right, thanks for clarifying that.

Guenter



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

Re: @abc - Tag...

Posted by Miha Vitorovic <mv...@nil.si>.
dannoritzer@web.de wrote on 28.07.2005 12:28:59:

> What you are looking for is the svn:keywords property.
> 
> I am not sure about the author, but what I am using is the $Id$ keyword,
> that gets expanded by the server. It includes revision #, submitter,
> date, time, not sure whether I got them all.

On a side note - I think that svn:keywords actually get expanded by the 
client. Because if you browse the repository with a browser, the keywords 
appear unexpanded.

Cheers,
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si

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


Re: @abc - Tag...

Posted by Günter Dannoritzer <da...@web.de>.
Hi,
Clemens A Mensik wrote:

> Hi,
> 
> is it possible to create tags in your source code? For Example some kind
> of @author - tag, that gets replaced by the server thru the user submiting
> this new file.
> 
> greets
> clemens

What you are looking for is the svn:keywords property.

I am not sure about the author, but what I am using is the $Id$ keyword,
that gets expanded by the server. It includes revision #, submitter,
date, time, not sure whether I got them all.

Have a look in the book:

http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-7-sect-2.3.4


Regards,

Guenter



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

@abc - Tag...

Posted by Clemens A Mensik <cl...@ip2.at>.
Hi,

is it possible to create tags in your source code? For Example some kind
of @author - tag, that gets replaced by the server thru the user submiting
this new file.

greets
clemens




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

Re: Subversion Tag

Posted by Miha Vitorovic <mv...@nil.si>.
"Annick Collet" <An...@eumetsat.int> wrote on 28.07.2005 11:44:53:

> Dear all, 
> 
> I'm new in subversion so may I submit you the following.
> 
> I have my repository structured as /trunk , / branches , and /tags.
> I use the /tags folder to create "release" as milestone of
> development.
> How can I make that /tags/rel_number   read only  to avoid people
> messing it  and ensure my release 
> 
> 
> thanks Ann.

You can do this by a simple pre-commit hook script. AFAIR somebody 
actually posted an example to this list - check the archives. If you can 
not find it, try Googling for it.

Cheers,
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si