##// END OF EJS Templates
filectx: lazy linkrev usage
Matt Mackall -
r3150:a5e4c817 default
parent child Browse files
Show More
@@ -124,7 +124,11 class filectx(object):
124 def filenode(self): return self._filenode
124 def filenode(self): return self._filenode
125 def filelog(self): return self._filelog
125 def filelog(self): return self._filelog
126
126
127 def rev(self): return self._changectx.rev()
127 def rev(self):
128 if hasattr(self, "_changectx"):
129 return self._changectx.rev()
130 return self._filelog.linkrev(self._filenode)
131
128 def node(self): return self._changectx.node()
132 def node(self): return self._changectx.node()
129 def user(self): return self._changectx.user()
133 def user(self): return self._changectx.user()
130 def date(self): return self._changectx.date()
134 def date(self): return self._changectx.date()
General Comments 0
You need to be logged in to leave comments. Login now