Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 4110: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 Tue Feb 20 20:55:23 2007 +0100 +++ b/mercurial/context.py Fri Feb 23 17:31:00 2007 +0100 @@ -510,7 +510,7 @@ 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)