changeset 20085:589d6bb5b18d

vfs: add "isfile()"
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 12 Nov 2013 16:23:52 +0900
parents a3378a1b0a05
children f3df2612f3c3
files mercurial/scmutil.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/scmutil.py	Tue Nov 12 16:23:52 2013 +0900
+++ b/mercurial/scmutil.py	Tue Nov 12 16:23:52 2013 +0900
@@ -159,6 +159,9 @@
     def isdir(self, path=None):
         return os.path.isdir(self.join(path))
 
+    def isfile(self, path=None):
+        return os.path.isfile(self.join(path))
+
     def islink(self, path=None):
         return os.path.islink(self.join(path))