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

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

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-10-12 20:51:45 CEST

On Wed, 2005-10-12 at 11:40 +0100, Greg Thomas wrote:
> On Wed, 12 Oct 2005 12:24:03 +0200, Miha Vitorovic <mvitorovic@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


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 12 20:53:26 2005

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.