Show More
@@ -7,7 +7,7 b'' | |||
|
7 | 7 | |
|
8 | 8 | from node import * |
|
9 | 9 | from i18n import _ |
|
10 | import ancestor, bdiff, repo, revlog, util, os | |
|
10 | import ancestor, bdiff, repo, revlog, util, os, errno | |
|
11 | 11 | |
|
12 | 12 | class changectx(object): |
|
13 | 13 | """A changecontext object makes access to data related to a particular |
@@ -501,5 +501,12 b' class workingfilectx(filectx):' | |||
|
501 | 501 | return [] |
|
502 | 502 | |
|
503 | 503 | def size(self): return os.stat(self._repo.wjoin(self._path)).st_size |
|
504 | def date(self): | |
|
505 | t, tz = self._changectx.date() | |
|
506 | try: | |
|
507 | return (os.lstat(repo.wjoin(self._path)).st_mtime, tz) | |
|
508 | except OSError, err: | |
|
509 | if err.errno != errno.ENOENT: raise | |
|
510 | return (t, tz) | |
|
504 | 511 | |
|
505 | 512 | def cmp(self, text): return self._repo.wread(self._path) == text |
General Comments 0
You need to be logged in to leave comments.
Login now