ignore adds to .bzrignore even if pattern is already ignored
Bug #237438 reported by
Russ Brown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Follow these steps:
bzr init test
cd test
touch file
bzr ignore file
bzr ignore file
cat .bzrignore
Note how 'test' is in the file twice.
This is a simple case, but you could also argue that the following shouldn't result in the second item being added either:
bzr init test
cd test
touch file.so
bzr ignore '*.so'
bzr ignore file.so
cat .bzrignore
...since the file is already ignored by the first rule.
This adds more cycles to compare files, so we should really plug this.