[patch] improved ignore pattern matching (#57637)
warthog618 at gmail.com
Tue Nov 28 12:17:55 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
> 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).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar