WorkingTree.walkdirs() has file_kind twice in tuple
Bug #369667 reported by
Chris Lasher
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
WorkingTree, found in bzrlibs.
returns a generator which yields items in the form:
Why is file_kind presented twice (at indices [1][:][2] and [1][:][5])? Shouldn't it just appear once?
On Thu, 2009-04-30 at 06:03 +0000, Chris Lasher wrote: workingtree, has a method called directory_ path, fileid),
> Public bug reported:
>
> WorkingTree, found in bzrlibs.
> walkdirs(). The docstring of this method states:
>
> returns a generator which yields items in the form:
> ((curren_
> [(file1_path, file1_name, file1_kind, (lstat), file1_id,
> file1_kind), ... ])
>
> Why is file_kind presented twice (at indices [1][:][2] and [1][:][5])?
> Shouldn't it just appear once?
It mirrors a deeper API for walking dirs that reports on 'versioned
kind' and 'actual kind'.
The docstring could be clearer.
status confirmed
importance low