Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 18950:647e3b0c8751
localrepo: use "vfs.readlink()" instead of "os.readlink()"
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 15 Apr 2013 01:22:15 +0900 |
parents | 138978f20180 |
children | d13916a00b7e |
comparison
equal
deleted
inserted
replaced
18949:138978f20180 | 18950:647e3b0c8751 |
---|---|
257 def readdir(self, path=None, stat=None, skip=None): | 257 def readdir(self, path=None, stat=None, skip=None): |
258 return osutil.listdir(self.join(path), stat, skip) | 258 return osutil.listdir(self.join(path), stat, skip) |
259 | 259 |
260 def rename(self, src, dst): | 260 def rename(self, src, dst): |
261 return util.rename(self.join(src), self.join(dst)) | 261 return util.rename(self.join(src), self.join(dst)) |
262 | |
263 def readlink(self, path): | |
264 return os.readlink(self.join(path)) | |
262 | 265 |
263 def stat(self, path=None): | 266 def stat(self, path=None): |
264 return os.stat(self.join(path)) | 267 return os.stat(self.join(path)) |
265 | 268 |
266 class vfs(abstractvfs): | 269 class vfs(abstractvfs): |