Comment 4 for bug 90819

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 90819] Re: WorkingTreeFormat4: bzr status README fails on windows

On Sat, 2007-03-10 at 18:03 +0000, John A Meinel wrote:
> I think the correct fix is to actually change the _walkdirs api, so that
> the first record returned is the record for 'top'. So if it is just a
> file, that is the only record that will be yielded. We can return it as
> a list with only one entry to be consistent with the rest of the yield.
>
> That way rather than catching an exception, walkdirs just is doing an
> lstat to make sure it is always operating on directories.
>
> It is easy enough to change the _walkdirs_utf8 code, since that is still
> considered a private api.

We can, but I think its more tasteful to have a specific api for gather
data on a path, and one for the children of: see path_info in my
dirstate2 branch - sftp://bazaar.launchpad.bet/~bzr/bzr/dirstate2

-Rob

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.