equal
deleted
inserted
replaced
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()] |