##// END OF EJS Templates
Fix annotate where linkrev != rev without exporting linkrev
Brendan Cully -
r3404:1a437b0f default
parent child Browse files
Show More
@@ -254,10 +254,16 b' class filectx(object):'
254
254
255 return [ getctx(p, n) for p, n in pl if n != -1 ]
255 return [ getctx(p, n) for p, n in pl if n != -1 ]
256
256
257 # use linkrev to find the first changeset where self appeared
258 if self.rev() != self._filelog.linkrev(self._filenode):
259 base = self.filectx(self.filerev())
260 else:
261 base = self
262
257 # find all ancestors
263 # find all ancestors
258 needed = {self: 1}
264 needed = {base: 1}
259 visit = [self]
265 visit = [base]
260 files = [self._path]
266 files = [base._path]
261 while visit:
267 while visit:
262 f = visit.pop(0)
268 f = visit.pop(0)
263 for p in parents(f):
269 for p in parents(f):
General Comments 0
You need to be logged in to leave comments. Login now