mercurial/context.py
branchstable
changeset 24862 c82d88dfaf59
parent 24818 8d7d0bf62f9f
child 24922 d9fb88c045a0
child 25193 ccb1623266eb
equal deleted inserted replaced
24861:15d7f435108a 24862:c82d88dfaf59
   885             return child
   885             return child
   886 
   886 
   887         getlog = util.lrucachefunc(lambda x: self._repo.file(x))
   887         getlog = util.lrucachefunc(lambda x: self._repo.file(x))
   888 
   888 
   889         def parents(f):
   889         def parents(f):
       
   890             # Cut _descendantrev here to mitigate the penalty of lazy linkrev
       
   891             # adjustment. Otherwise, p._adjustlinkrev() would walk changelog
       
   892             # from the topmost introrev (= srcrev) down to p.linkrev() if it
       
   893             # isn't an ancestor of the srcrev.
       
   894             f._changeid
   890             pl = f.parents()
   895             pl = f.parents()
   891 
   896 
   892             # Don't return renamed parents if we aren't following.
   897             # Don't return renamed parents if we aren't following.
   893             if not follow:
   898             if not follow:
   894                 pl = [p for p in pl if p.path() == f.path()]
   899                 pl = [p for p in pl if p.path() == f.path()]