mercurial/context.py
changeset 4108 20af6a2f0b0e
parent 4002 d7b9ec589546
child 4115 eb0967c6e77b
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -510,7 +510,7 @@ class workingfilectx(filectx):
     def date(self):
         t, tz = self._changectx.date()
         try:
-            return (os.lstat(repo.wjoin(self._path)).st_mtime, tz)
+            return (os.lstat(self._repo.wjoin(self._path)).st_mtime, tz)
         except OSError, err:
             if err.errno != errno.ENOENT: raise
             return (t, tz)