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

Re: Hook script parsing help

From: Laker Netman <laker_netman_at_yahoo.com>
Date: Thu, 1 May 2008 15:40:01 -0700 (PDT)

/^[AU]. (.*[^\/])$/

The square brackets [] create a characterclass, which means a match will be made on any *one* character found inthe class. In this case the A or the U.

Laker

----- Original Message ----
From: Phil <plabonte_at_gmail.com>
To: Subversion Users <users_at_subversion.tigris.org>
Sent: Thursday, May 1, 2008 3:11:59 PM
Subject: Hook script parsing help

I am uing a hook script to check Added files to make sure they have
the svn:needs-lock property..
I want to make sure updated files get checked for this property as
well but I am not very good with perl...

In this section of the hook script:
1 # Add only files that were added to @files_added
2 if ($line =~ /^A. (.*[^\/])$/)
3 {
4 push(@files_added, $1);
5 }

I want to change line 2 to look for A or U.... how can I code this?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-02 00:40:27 CEST

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.