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

Re: Getting rid of the Emacs cruft

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-11-11 23:23:45 CET

Karl Fogel wrote:

>Karl Fogel <kfogel@newton.ch.collab.net> writes:
>
>
>> (if (string-match "subversion/" buffer-file-name)
>>
>>
>
>Note that this regexp is actually matching the full path to your
>subversion tree. So it could say
>
> (string-match "projects/svn/" buffer-file-name)
>
>too, or whatever.
>
>
Here's the regexp I'm using:

    "src/svn/[^/]*/\\(subversion\\|tools\\|build\\)/"

Two things to notice there: (1) I sometimes have several working copies
checked out under ...src/svn, and I want the regexp to match all of
them; (2) I want the hook to catch only in "our" directories within the
working copy, so I match "subversion", "tools" and "build" explicitly; I
don't want to use GNU style in the APR that's checked out into my repo. :-)

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 11 23:24:43 2002

This is an archived mail posted to the Subversion Dev mailing list.