default ignores in bzr

Parth Malwankar parth.malwankar at gmail.com
Fri Apr 16 16:33:47 BST 2010


Hello,

I was looking at the way default ignores work in bzr and noticed that
OLD_DEFAULTS are used only in two places.

[bzrlib]% bzr grep OLD_DEFAULTS
builtins.py:            for pattern in ignores.OLD_DEFAULTS:
ignores.py:OLD_DEFAULTS = [

IIUC this is used for the --old-default-rules option but is not actually
used for ignore anymore and ignore uses USER_DEFAULTS.
As per help for 'bzr ignore':
  --old-default-rules   Write out the ignore rules bzr < 0.9 always used.

Is this used anywhere else? Does it make sense to remove
--old-default-rules and have --default-rules[1] instead which shows
current ignores (USER_DEFAULTS) ?

Regards,
Parth

[1] https://bugs.launchpad.net/bzr/+bug/538703



More information about the bazaar mailing list