diff mercurial/context.py @ 4108:20af6a2f0b0e

Fixed workingfilectx.date() (found by Thomas Waldmann) with test.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 23 Feb 2007 17:31:00 +0100
parents d7b9ec589546
children eb0967c6e77b
line wrap: on
line diff
--- 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)