[patch] improved ignore pattern matching (#57637)

Kent Gibson warthog618 at gmail.com
Tue Nov 28 12:17:55 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>
> As seen above, it's more complicated than is seems...
>
> Sorry to complicate the matter further instead of proposing a
> solution, but I thought it was worth mentioning...
>
Fortunately for me to maintain compatibility I just want to emulate
the fnmatch behaviour on all systems.
If the fnmatch is NOT case-insensitive on case-insensitive systems
then the fix is to correct the ignore help.
If it is then I just need to find out how fnmatch is doing it and try
to incorporate that in my patch.

I guess it's time to go have a look in fnmatch.py....
It uses os.path.normcase to normalise both path and pattern.
So I'll use that or something similar.

Btw, Python considers both NT and MAC to be case insensitive.
In both cases it converts to lower case (ref ntpath.py and macpath.py).

Cheers,
Kent.




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFbCjygoxTFTi1P8QRAum3AKCa635JFIA5JClQ6jB8Jz7pkUXACwCfaQWG
1GTXYJc+Oq0TfFIOI5aIkCU=
=AS0R
-----END PGP SIGNATURE-----




More information about the bazaar mailing list