Show More
@@ -8,7 +8,7 b'' | |||||
8 | from node import * |
|
8 | from node import * | |
9 | from i18n import gettext as _ |
|
9 | from i18n import gettext as _ | |
10 | from demandload import demandload |
|
10 | from demandload import demandload | |
11 | demandload(globals(), "ancestor bdiff repo revlog util") |
|
11 | demandload(globals(), "ancestor bdiff repo revlog util os") | |
12 |
|
12 | |||
13 | class changectx(object): |
|
13 | class changectx(object): | |
14 | """A changecontext object makes access to data related to a particular |
|
14 | """A changecontext object makes access to data related to a particular | |
@@ -191,6 +191,7 b' class filectx(object):' | |||||
191 | def data(self): return self._filelog.read(self._filenode) |
|
191 | def data(self): return self._filelog.read(self._filenode) | |
192 | def renamed(self): return self._filelog.renamed(self._filenode) |
|
192 | def renamed(self): return self._filelog.renamed(self._filenode) | |
193 | def path(self): return self._path |
|
193 | def path(self): return self._path | |
|
194 | def size(self): return self._filelog.size(self._filerev) | |||
194 |
|
195 | |||
195 | def parents(self): |
|
196 | def parents(self): | |
196 | p = self._path |
|
197 | p = self._path | |
@@ -465,3 +466,4 b' class workingfilectx(filectx):' | |||||
465 | def children(self): |
|
466 | def children(self): | |
466 | return [] |
|
467 | return [] | |
467 |
|
468 | |||
|
469 | def size(self): return os.stat(self._repo.wjoin(self._path)).st_size |
General Comments 0
You need to be logged in to leave comments.
Login now