ls and st commands evaluate ignore patterns differently

Bug #1189031 reported by Alexander Taler
8
This bug affects 1 person
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: ignore
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is a bug in 'brz ls'. If it's run with a path argument, it doesn't correctly detect ignores.

tags: added: ignore
removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.