Page MenuHomePhabricator

copies: replace duplicatecopies() by function that takes contexts
ClosedPublic

Authored by martinvonz on Jan 14 2020, 12:06 PM.

Details

Summary

The callers mostly have context objects, so let's avoid looking up the
same context objects inside duplicatecopies().

I also renamed the function to graftcopies() since I think that
better matches its purpose. I did it in the same commit so it's easier
for extensions to switch between the functions.

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.