.bzrignore ignores all addons
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
observed in v6.1, v7, trunk
Hi.
In the .bzrignore file of openobject-server I find that too many files are ignored. In general, I expect "bzr status" to tell me that the tree is clean only when it is actually clean.
- openerp/addons/*
I consider that one to be a real bug for two reasons: first, it ignores proper, important python code (all of the base module). Second, if you add of symlink modules there (a bad practice probably, but nothing prevents you from doing that), they will be used without you noticing.
I would also take out more things, but that is up to discussion. In any case, here is a list of what I would take out too, without being so bad:
- .bzrignore. If some user wants to ignore more files, they should use their personal ignore file, not add things to a file that ignores itself.
- .swp : if I am editing a file, or the editor has crashed, or I forgot to save, I consider my tree unclean, and I do not want bzr to tell me it's all clean.
- bin/ include/ lib/ : these look like they are meant for a virtualenv created with "virtualenv ." which could be a bad idea. I might be wrong on that one though.
Thanks!
Related branches
- Holger Brunn (Therp): Disapprove
- Sandy Carter (http://www.savoirfairelinux.com): Disapprove
-
Diff: 11 lines (+0/-3)1 file modified.bzrignore (+0/-3)
- Holger Brunn (Therp): Disapprove
- Sandy Carter (http://www.savoirfairelinux.com): Disapprove
-
Diff: 16 lines (+0/-3)1 file modified.bzrignore (+0/-3)
From the documentation: doc.bazaar. canonical. com/bzr. 2.6/en/ user-guide/ controlling_ registration. html
"Note that ignore patterns are only matched against non-versioned files, and control whether they are treated as “unknown” or “ignored”. If a file is explicitly added, it remains versioned regardless of whether it matches an ignore pattern."
http://
So, base addons are tracked but new files has to be explicitly added ('bzr add' will not blindly add new files). I think it was made like this to allow copying or linking addons to the 'openerp/addons' folder and still using bzr to manage the server repository. I think in versions brefore 6.1 you could only have one addons folder.