You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Christopher Ness <ch...@nesser.org> on 2005/10/12 18:51:45 UTC

Re: SV: SV: Request Tag-PreCommit-Script/hook for use at the OS: Windows Server 2003

On Wed, 2005-10-12 at 11:40 +0100, Greg Thomas wrote:
> On Wed, 12 Oct 2005 12:24:03 +0200, Miha Vitorovic <mv...@nil.si>
> wrote:
> 
> >Actually, what you need to do is, is check if the svnlook result contains 
> >"/tags/" (as you do), and if the flags are U (update) or D (delete) 
> 
> I don't believe that is sufficient. I can still add stuff to an
> existing tag - this will appear as
> 
> A    /tags/release-1.0/new-file-added.txt
> 
> So you can still change an existing tag.

Strip the path to the directory above /tags which in the above example
is "/tags/release-1.0/"

If this dir exists in SVN ("svn info file:///path/tags/release-1.0/")
bounce the commit.

Variances on this idea will be needed for your repositories /tag dir
structure.

Chris
-- 
http://www.nesser.org


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