monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: Regular expressions in .mtn-ignore


From: Boris
Subject: [Monotone-devel] Re: Regular expressions in .mtn-ignore
Date: Sun, 24 Jun 2007 14:57:44 +0900
User-agent: Opera Mail/9.20 (Win32)

On Sat, 23 Jun 2007 08:43:37 +0900, Timothy Brownawell <address@hidden> wrote:

On Sun, 2007-06-17 at 23:51 +0900, Boris wrote:
Question #1:
Is there any syntax to ignore files based on their case-insensitive
extension? Currently I ignore all libraries with this for example:

\.dll\>
\.DLL\>

I can probably remove half of my .mtn-ignore file if there is a
case-insensitive solution.

http://www.boost.org/libs/regex/doc/syntax_perl.html

is the kind of regex we (currently) use. (I think there has been talk of
even switching to just globs, so this may not be valid forever.)

It looks like '\.(?i:dll)\>' would work.

Question #2:
I have a file called Debug.something. This file should not be ignored.
However I have another directory called Debug which I want to ignore
completely. Currently my .mtn-ignore contains this:

[Dd]ebug\>

The problem is that the dot in Debug.something marks the end of the word
Debug - thus the file Debug.something is ignored, too. I forced monotone
to add it to the workspace nevertheless but wonder if can distinguish
between files and directories somehow?

'[Dd]ebug$' (or maybe '[Dd]ebug/' if we put a trailing slash on
directories, I don't recall offhand), perhaps?

Thanks, Timothy! Both \.(?i:dll)\> and (?i:debug)$ work perfectly!

Boris





reply via email to

[Prev in Thread] Current Thread [Next in Thread]