2533 revs = _logrevs(repo, opts) |
2533 revs = _logrevs(repo, opts) |
2534 if not revs: |
2534 if not revs: |
2535 return smartset.baseset(), None |
2535 return smartset.baseset(), None |
2536 match, pats, slowpath = _makelogmatcher(repo, revs, pats, opts) |
2536 match, pats, slowpath = _makelogmatcher(repo, revs, pats, opts) |
2537 if follow: |
2537 if follow: |
2538 if slowpath or not pats: |
2538 if slowpath or match.always(): |
2539 revs = dagop.revancestors(repo, revs, followfirst=followfirst) |
2539 revs = dagop.revancestors(repo, revs, followfirst=followfirst) |
2540 else: |
2540 else: |
2541 revs = _fileancestors(repo, revs, match, followfirst) |
2541 revs = _fileancestors(repo, revs, match, followfirst) |
2542 revs.reverse() |
2542 revs.reverse() |
2543 expr, filematcher = _makelogrevset(repo, match, pats, slowpath, opts) |
2543 expr, filematcher = _makelogrevset(repo, match, pats, slowpath, opts) |