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

Re: How do I disable tag modification?

From: Wolfgang Fritz <wolfgang.fritz_at_keymile.com>
Date: 2004-09-14 15:31:30 CEST

Max Bowsher wrote:
> Wolfgang Fritz wrote:
>> Max Bowsher wrote:
>>>
>>> Run svnlook changed
>>> If any lines match "^.. tags/[^/]+/.+$" then deny the commit
>>>
>>
>> Aha! "svnlook changed" seems to be what I have looked for. But wouldn't
>> the expression above prevent the creation of tags too? If I create a
>> tag, I get output like:
>>
>> A project1/tags/tag1/
>> A project1/tags/tag1/Datei1
>> A project1/tags/tag1/fdflush.c
>> A project1/tags/tag1/modprobe.c
>
> Really? I only get a single line for a simple copy-to-tag, giving the base
> path of the add with history. What does "svn log -vq" say about the revision
> you quote?
>
> Max.

My command sequence with output:

bash(234)[project1]svn cp trunk tags/tag1
A tags/tag1
bash(235)[project1]svn ci -m "Created tag1"
Adding project1/tags/tag1
Adding project1/tags/tag1/Datei1
Adding project1/tags/tag1/fdflush.c
Adding project1/tags/tag1/modprobe.c

Committed revision 41.
bash(236)[project1]svn log -vq -r41
------------------------------------------------------------------------
r41 | (no author) | 2004-09-14 15:21:41 +0200 (Tue, 14 Sep 2004)
Changed paths:
   A /project1/tags/tag1 (from /project1/trunk:1)
   A /project1/tags/tag1/Datei1 (from /project1/trunk/Datei1:8)
   A /project1/tags/tag1/fdflush.c (from /project1/trunk/fdflush.c:5)
   A /project1/tags/tag1/modprobe.c (from /project1/trunk/modprobe.c:4)
------------------------------------------------------------------------
bash(237)[project1]

But I had not read your regular expression correctly. I've tested it
with the "svnlook changed" output and it prints only the "forbidden"
actions inside the tags/tag1 subdirectory. So it seems to do the correct
thing.

It allows tag creation, tag deletion and tag renames like CVS.

Thank you very much,

Wolfgang

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 14 15:32:04 2004

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.