Re: [Monotone-devel] .mtn-ignore ignored?

2009-10-25 Thread Ludovic Brenta
Timothy Brownawell  writes:
> They should work, and they *do* work here. So if you haven't overridden
> the ignore_file() hook and this is in the workspace root directory, I'm
> not sure what could be going on.

Heh.  Thanks, that reminded me that I overrode ignore_file() back in
2006... I copied and pasted the then-default version which read
.mt-ignore instead of .mtn-ignore.  (if you're curious: I didn't want to
ignore *.a files because GCC sources contain files with this extension,
containing Ada test cases instead of static libraries).

-- 
Ludovic Brenta.


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] .mtn-ignore ignored?

2009-10-25 Thread Timothy Brownawell
Ludovic Brenta wrote:
> Timothy Brownawell writes:
>> Ludovic Brenta wrote:
>>> Hello,
>>>
>>> It seems my regexps in .mtn-ignore no longer works.  When I call "mtn ls
>>> ignored", the resulting list is always empty.  When I do "mtn add -R .",
>>> it add all files including the ones I want to ignore, and that match the
>>> regexps.
>>>
>>> I think this is a regression since 0.36 or so; I know for a fact that
>>> these same regexps used to work.
>>>
>>> Do recent versions of monotone still support .mtn-ignore, as the
>>> documentation says?
>> Yes, for example the .mtn-ignore in net.venge.monotone seems to work
>> fine. 0.37 did switch from Boost::regex to PCRE, but NEWS says this
>> shouldn't have broken anything. Do you have examples of the patterns and
>> the files they're failing to match?
> 
> $ cat .mtn-ignore
> debian/files
> debian/gnat
> $ mtn ls ignored
> $ mtn ls debian/files debian/gnat
> debian/files
> 
> debian/gnat:
> DEBIAN  usr
> $ mtn ls known
> .mtn-ignore
> debian
> debian/changelog
> debian/compat
> debian/control
> debian/copyright
> debian/rules
> debian/source.lintian-overrides
> $ mtn add debian/files # should be ignored
> mtn: adding debian/files to workspace manifest
> 
> I sincerely hope I'm doing something wrong... I tried the following
> regular expressions, all with the same result:
> 
> debian/files
> ^debian/files$
> /debian/files
> ^\./debian/files$
> ^/debian/files$
> 
> (The last three do not match the output of "mtn ls unknown" so I don't
> expect them to work; but I do expect the first two to work.)

They should work, and they *do* work here. So if you haven't overridden
the ignore_file() hook and this is in the workspace root directory, I'm
not sure what could be going on.


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] .mtn-ignore ignored?

2009-10-25 Thread Ludovic Brenta
Timothy Brownawell writes:
> Ludovic Brenta wrote:
>> Hello,
>> 
>> It seems my regexps in .mtn-ignore no longer works.  When I call "mtn ls
>> ignored", the resulting list is always empty.  When I do "mtn add -R .",
>> it add all files including the ones I want to ignore, and that match the
>> regexps.
>> 
>> I think this is a regression since 0.36 or so; I know for a fact that
>> these same regexps used to work.
>> 
>> Do recent versions of monotone still support .mtn-ignore, as the
>> documentation says?
>
> Yes, for example the .mtn-ignore in net.venge.monotone seems to work
> fine. 0.37 did switch from Boost::regex to PCRE, but NEWS says this
> shouldn't have broken anything. Do you have examples of the patterns and
> the files they're failing to match?

$ cat .mtn-ignore
debian/files
debian/gnat
$ mtn ls ignored
$ mtn ls debian/files debian/gnat
debian/files

debian/gnat:
DEBIAN  usr
$ mtn ls known
.mtn-ignore
debian
debian/changelog
debian/compat
debian/control
debian/copyright
debian/rules
debian/source.lintian-overrides
$ mtn add debian/files # should be ignored
mtn: adding debian/files to workspace manifest

I sincerely hope I'm doing something wrong... I tried the following
regular expressions, all with the same result:

debian/files
^debian/files$
/debian/files
^\./debian/files$
^/debian/files$

(The last three do not match the output of "mtn ls unknown" so I don't
expect them to work; but I do expect the first two to work.)

-- 
Ludovic Brenta.


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] .mtn-ignore ignored?

2009-10-25 Thread Timothy Brownawell
Ludovic Brenta wrote:
> Hello,
> 
> It seems my regexps in .mtn-ignore no longer works.  When I call "mtn ls
> ignored", the resulting list is always empty.  When I do "mtn add -R .",
> it add all files including the ones I want to ignore, and that match the
> regexps.
> 
> I think this is a regression since 0.36 or so; I know for a fact that
> these same regexps used to work.
> 
> Do recent versions of monotone still support .mtn-ignore, as the
> documentation says?

Yes, for example the .mtn-ignore in net.venge.monotone seems to work
fine. 0.37 did switch from Boost::regex to PCRE, but NEWS says this
shouldn't have broken anything. Do you have examples of the patterns and
the files they're failing to match?


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


[Monotone-devel] .mtn-ignore ignored?

2009-10-25 Thread Ludovic Brenta
Hello,

It seems my regexps in .mtn-ignore no longer works.  When I call "mtn ls
ignored", the resulting list is always empty.  When I do "mtn add -R .",
it add all files including the ones I want to ignore, and that match the
regexps.

I think this is a regression since 0.36 or so; I know for a fact that
these same regexps used to work.

Do recent versions of monotone still support .mtn-ignore, as the
documentation says?

I currently run:

monotone 0.44 (base revision: b0498387aa9570fb7bd97845de14f63a88d8658a)
Running on  : Linux 2.6.26-2-amd64 #1 SMP Wed Aug 19 22:33:18 UTC 2009 
x86_64
C++ compiler: GNU C++ version 4.3.3
C++ standard library: GNU libstdc++ version 20090714
Boost version   : 1_38
SQLite version  : 3.6.18 (compiled against 3.6.16)
Lua version : Lua 5.1
PCRE version: 7.8 2008-09-05 (compiled against 7.8)
Botan version   : 1.8.6 (compiled against 1.8.4)
Changes since base revision:
format_version "1"

new_manifest [e4fc965aec46ce8b371e818de6092168e1b6f52f]

old_revision [7a4832143b3146ca89f5cb91e0e571d05e29d4b9]

  Generated from data cached in the distribution;
  further changes may have been made.

-- 
Ludovic Brenta.


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel