This is an archive of the discontinued Mercurial Phabricator instance.

filemerge: reduce some duplication in `_maketempfiles()`
ClosedPublic

Authored by martinvonz on Feb 15 2022, 11:09 PM.

Details

Summary

The two callers of the local maketempfrompath() function used the
returned file object in the same way. We can reduce duplication by
moving that code into the function.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

martinvonz created this revision.Feb 15 2022, 11:09 PM
Alphare accepted this revision.Feb 16 2022, 5:19 AM
This revision is now accepted and ready to land.Feb 16 2022, 5:19 AM