Impossible to exclude specific subdirectories with makemessages
|Reported by:||Ana Krivokapic||Owned by:||justhamade|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
As described in https://code.djangoproject.com/ticket/20422#comment:4, it is currently impossible to exclude subdirectories, or files in subdirectories, using the --ignore option of makemessages management command. This used to work in Django 1.5, but a regression was introduced by the fix for above mention ticket #20422.
The new patch should make sure to include unit tests which test for correct behavior of the --ignore option of makemessages, specifically in the case of subdirectories.
makemessages --ignore dir/subdir/*
makemessages --ignore dir/*/file.py
Change History (9)
comment:1 Changed 3 years ago by
|Owner:||changed from nobody to ANUBHAV JOSHI|
|Patch needs improvement:||unset|
|Status:||new → assigned|