[PATCH 7 of 7 VFS] subrepo: use vfs.removedirs instead of os.removedirs

Matt Mackall mpm at selenic.com
Fri Apr 10 16:01:11 CDT 2015


On Sat, 2015-04-11 at 00:54 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> # Date 1428680829 -32400
> #      Sat Apr 11 00:47:09 2015 +0900
> # Node ID 731246645142b169152cba8ef6b6d235a53bdf28
> # Parent  2316afa88e37a93d3455d30d38dbe4fe994034cd
> subrepo: use vfs.removedirs instead of os.removedirs

These are queued for default, thanks.

> +            self._ctx.repo().wvfs.removedirs(os.path.dirname(self._path))

Looks like we'll need dirname/basename methods in addition to vfs.split.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list