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
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 bazaar. launchpad. bet/~bzr/ bzr/dirstate2
data on a path, and one for the children of: see path_info in my
dirstate2 branch - sftp://
-Rob
-- www.robertcolli ns.net/ keys.txt>.
GPG key available at: <http://