grep: reuse getrenamedfn() from scmutil
ClosedPublic

Authored by martinvonz on Sun, Feb 24, 1:11 AM.

Details

Summary

My motivation is to reduce uses of filectx.renamed(). Reusing
scmutil.getrenamedfn() also means that we get some caching of copy
information per file and revision. I don't think that matters for `hg
grep` (I doubt it speeds up significantly, and I doubt it wastes
significant memory), but I'm not sure.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
martinvonz created this revision.Sun, Feb 24, 1:11 AM
This revision was automatically updated to reflect the committed changes.