Wolfgang Fritz wrote:
> 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]
Aaah! Now I understand
Yes, you would need to tweak the logic that I proposed to allow that.
Note that copying from a working copy preserves the mixed revisions of the
working copy. This is not what you want in the usual case.
This is why we encourage copying URL->URL.
So, you will get an "A" for the root of the tag, and another "A" for each
subtree which is copied from a different revision number.
Max.
---------------------------------------------------------------------
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:53:37 2004