##// END OF EJS Templates
context: parents() already filters nullid
Benoit Boissinot -
r9974:da5209af default
parent child Browse files
Show More
@@ -439,12 +439,11 b' class filectx(object):'
439 for f in sorted(visit, key=lambda x: x.rev()):
439 for f in sorted(visit, key=lambda x: x.rev()):
440 curr = decorate(f.data(), f)
440 curr = decorate(f.data(), f)
441 for p in parents(f):
441 for p in parents(f):
442 if p != nullid:
442 curr = pair(hist[p], curr)
443 curr = pair(hist[p], curr)
443 # trim the history of unneeded revs
444 # trim the history of unneeded revs
444 needed[p] -= 1
445 needed[p] -= 1
445 if not needed[p]:
446 if not needed[p]:
446 del hist[p]
447 del hist[p]
448 hist[f] = curr
447 hist[f] = curr
449
448
450 return zip(hist[f][0], hist[f][1].splitlines(True))
449 return zip(hist[f][0], hist[f][1].splitlines(True))
General Comments 0
You need to be logged in to leave comments. Login now