--- a/mercurial/localrepo.py Mon Apr 15 01:22:15 2013 +0900
+++ b/mercurial/localrepo.py Mon Apr 15 01:22:15 2013 +0900
@@ -795,7 +795,7 @@
else:
self.wopener.write(filename, data)
if 'x' in flags:
- util.setflags(self.wjoin(filename), False, True)
+ self.wvfs.setflags(filename, False, True)
def wwritedata(self, filename, data):
return self._filter(self._decodefilterpats, filename, data)
--- a/mercurial/scmutil.py Mon Apr 15 01:22:15 2013 +0900
+++ b/mercurial/scmutil.py Mon Apr 15 01:22:15 2013 +0900
@@ -263,6 +263,9 @@
def readlink(self, path):
return os.readlink(self.join(path))
+ def setflags(self, path, l, x):
+ return util.setflags(self.join(path), l, x)
+
def stat(self, path=None):
return os.stat(self.join(path))