ls and st commands evaluate ignore patterns differently
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned | ||
Breezy |
Triaged
|
Medium
|
Jelmer Vernooij |
Bug Description
Here is a test case:
1) bzr branch lp:bzr-java-lib
2) cd bzr-java-lib/
3) touch src/ignored.txt
4) bzr ignore src/ignored.txt
5) bzr ls -v -R -i
I src/ignored.txt
6) cd src
7) bzr ls -v -R -i
[nothing listed]
8) bzr st .
[nothing listed]
And here are the questions:
Why does the ignore pattern in the test case seem to be evaluated differently for ls and st commands? Is it a known bug? Why is it evaluated differently for ls command depending on the directory the command is run in?
bzr st seems to ignore the file correctly in 8), while ls lists it as ignored in 5) only.
I would expect an explicit file path with directories to be always evaluated from the root of the branch, no matter what the current directory is.
Thanks for any hint,
Piotr
tags: | added: check-for-breezy |
This is a bug in 'brz ls'. If it's run with a path argument, it doesn't correctly detect ignores.