Patchwork [1,of,6,V2] vfs: add listdir for os.listdir in vfs

login
register
mail settings
Submitter Chinmay Joshi
Date June 21, 2014, 10:27 a.m.
Message ID <9d359cb139d158b7af07.1403346468@genesis>
Download mbox | patch
Permalink /patch/5026/
State Accepted
Commit dfacdd6a111e9b3960bfa8364818645951fa3e07
Headers show

Comments

Chinmay Joshi - June 21, 2014, 10:27 a.m.
# HG changeset patch
# User Chinmay Joshi <c@chinmayjoshi.com>
# Date 1403279294 -19800
#      Fri Jun 20 21:18:14 2014 +0530
# Node ID 9d359cb139d158b7af079fa62d629c64f8c27a2a
# Parent  cd3c79392056a0d965236e4986a7a4b5d580f3e5
vfs: add listdir for os.listdir in vfs

This patch adds listdir() in vfs to use os.listdir().

Patch

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -184,6 +184,9 @@ 
     def lstat(self, path=None):
         return os.lstat(self.join(path))
 
+    def listdir(self, path=None):
+        return os.listdir(self.join(path))
+
     def makedir(self, path=None, notindexed=True):
         return util.makedir(self.join(path), notindexed)