[PATCH 9 of 9] store: invoke "osutil.listdir()" via vfs

Matt Mackall mpm at selenic.com
Mon Oct 8 15:13:51 CDT 2012


On Tue, 2012-10-09 at 02:06 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> # Date 1349714515 -32400
> # Node ID ac075cf7b46384292be10617d6261cd070f07c37
> # Parent  e821f4ebf5a1082e750b07964e0ee291272bb458
> store: invoke "osutil.listdir()" via vfs
> 
> This patch invokes "osutil.listdir()" via vfs object.
> 
> The function added newly to "abstractvfs" is named not as "listdir()"
> but as "listdir2()": "listdir()" will be used to add the function for
> "os.listdir()" invocation, because "os.listdir()" seems to be more
> familiar as "listdir()" than "osutil.listdir()".

How about readdir? This matches the name of the POSIX API, that on some
systems includes the DT_TYPE field that we use here.

I've queued the first 8 patches, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list