Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/context.py @ 3209:9e8dd6114a4e
merged brendan's hgweb cleanups
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 30 Sep 2006 12:34:31 +0200 |
parents | 14792adabf80 0790dce2f3a8 |
children | 53e843840349 e8199702cf4e |
line wrap: on
line diff
--- a/mercurial/context.py +++ b/mercurial/context.py @@ -148,6 +148,12 @@ class filectx(object): def __eq__(self, other): return self._path == other._path and self._changeid == other._changeid + def filectx(self, fileid): + '''opens an arbitrary revision of the file without + opening a new filelog''' + return filectx(self._repo, self._path, fileid=fileid, + filelog=self._filelog) + def filerev(self): return self._filerev def filenode(self): return self._filenode def filelog(self): return self._filelog