ls --non-recursive PATH : no list
Bug #158690 reported by
KISS, Zoltán
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned |
Bug Description
BZR on Win XP ENG Prof
C:\ZOLI\
./bzr_commands.txt
./bzr_hidden_
./bzr_plugin_
C:\ZOLI\
bzr_commands.txt
bzr_hidden_
bzr_plugin_list.txt
C:\ZOLI\
/////// NO LIST /////////
Bazaar (bzr) 0.90.0 Python interpreter: C:\Program Files\Bazaar\
Changed in bzr: | |
status: | Triaged → Confirmed |
Changed in bzr: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Confirmed here. This isn't platform specific.
Doing:
bzr ls --non-recursive .
The code is doing: files(include_ root=False) : relpath) :
fp = osutils. pathjoin( prefix, fp[len(relpath):])
if non_recursive and '/' in fp:
continue
if not all and not selection[fc]:
continue
for fp, fc, fkind, fid, entry in tree.list_
if fp.startswith(
'cd PATH; bzr ls --non-recursive' works because the prefix is '', so it doesn't add a '/'.
We could do:
max_count = 0
if prefix:
max_count = 1
if non_recursive and fp.count('/') > max_count:
continue
So that if there is a 'prefix' we allow a single '/', otherwise 0 '/'.
It has been that way for a long time. It seems not many people use ls --non-recursive.