Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 17726:7cb7e17c23b2
store: invoke "os.stat()" for "createmode" initialization via vfs
This just replaces "os.stat()" invocation: refactoring around
"self.createmode" and "vfs.createmode" initialization is omitted.
This patch also newly adds "stat()" function to "abstractvfs".
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 09 Oct 2012 01:41:55 +0900 |
parents | ffd589d4b785 |
children | aad3bce98f76 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Tue Oct 09 01:41:55 2012 +0900 +++ b/mercurial/scmutil.py Tue Oct 09 01:41:55 2012 +0900 @@ -219,6 +219,9 @@ def mkdir(self, path=None): return os.mkdir(self.join(path)) + def stat(self, path=None): + return os.stat(self.join(path)) + class vfs(abstractvfs): '''Operate files relative to a base directory